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
+3 -2
View File
@@ -103,7 +103,8 @@ class TransactionsNotifier extends AsyncNotifier<List<Transaction>> {
}
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 Map<String, Transaction> pairs = {};
@@ -167,9 +168,9 @@ class _TimeFilterNotifier extends Notifier<TimeFilter> {
}
final accountFilteredTransactionsProvider = Provider<List<Transaction>>((ref) {
final activeAccount = ref.watch(activeAccountProvider);
final txsAsync = ref.watch(transactionsProvider);
final txs = txsAsync.value ?? [];
final activeAccount = ref.watch(activeAccountProvider);
if (activeAccount == null) {
return txs;
@@ -61,7 +61,7 @@ class _AccountEditorPanelState extends ConsumerState<AccountEditorPanel> {
],
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 10),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
@@ -76,7 +76,7 @@ class _AccountEditorPanelState extends ConsumerState<AccountEditorPanel> {
).colorScheme.onSurface.withOpacity(0.6),
),
),
const SizedBox(height: 8),
const SizedBox(height: 6),
IntrinsicHeight(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,