This commit is contained in:
2026-06-13 22:43:06 +03:00
parent 2682c92f23
commit 8fb785944c
29 changed files with 671 additions and 322 deletions
@@ -41,7 +41,7 @@ class AccountRow extends ConsumerWidget {
final s = ref.watch(stringsProvider);
final state = ref.watch(addTransactionProvider(initial));
final accountsAsync = ref.watch(accountsProvider);
final accounts = accountsAsync.valueOrNull ?? [];
final accounts = accountsAsync.value ?? [];
final isTransfer = state.type == TransactionType.transfer;
if (isTransfer && accounts.length == 2 && state.selectedAccountId != null) {
@@ -21,7 +21,7 @@ class TypeToggle extends ConsumerWidget {
@override
Widget build(BuildContext context, WidgetRef ref) {
final accountsAsync = ref.watch(accountsProvider);
final accounts = accountsAsync.valueOrNull ?? [];
final accounts = accountsAsync.value ?? [];
final transferDisabled = accounts.length <= 1;
return Container(