mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
step
This commit is contained in:
+233
-589
File diff suppressed because it is too large
Load Diff
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user