This commit is contained in:
2026-06-24 00:47:07 +03:00
parent 3961327bdb
commit 83fd8bdbf1
3 changed files with 238 additions and 593 deletions
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -103,7 +103,8 @@ class TransactionsNotifier extends AsyncNotifier<List<Transaction>> {
} }
final transferPairsProvider = Provider<Map<String, Transaction>>((ref) { final transferPairsProvider = Provider<Map<String, Transaction>>((ref) {
final txs = ref.watch(transactionsProvider).value ?? []; final txsAsync = ref.watch(transactionsProvider);
final txs = txsAsync.value ?? [];
final transfers = txs.where((t) => t.category == 'Transfer').toList(); final transfers = txs.where((t) => t.category == 'Transfer').toList();
final Map<String, Transaction> pairs = {}; final Map<String, Transaction> pairs = {};
@@ -167,9 +168,9 @@ class _TimeFilterNotifier extends Notifier<TimeFilter> {
} }
final accountFilteredTransactionsProvider = Provider<List<Transaction>>((ref) { final accountFilteredTransactionsProvider = Provider<List<Transaction>>((ref) {
final activeAccount = ref.watch(activeAccountProvider);
final txsAsync = ref.watch(transactionsProvider); final txsAsync = ref.watch(transactionsProvider);
final txs = txsAsync.value ?? []; final txs = txsAsync.value ?? [];
final activeAccount = ref.watch(activeAccountProvider);
if (activeAccount == null) { if (activeAccount == null) {
return txs; return txs;
@@ -61,7 +61,7 @@ class _AccountEditorPanelState extends ConsumerState<AccountEditorPanel> {
], ],
), ),
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12), padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
@@ -76,7 +76,7 @@ class _AccountEditorPanelState extends ConsumerState<AccountEditorPanel> {
).colorScheme.onSurface.withOpacity(0.6), ).colorScheme.onSurface.withOpacity(0.6),
), ),
), ),
const SizedBox(height: 8), const SizedBox(height: 6),
IntrinsicHeight( IntrinsicHeight(
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,