This commit is contained in:
2026-06-28 14:55:41 +03:00
parent 6fdf4eedf1
commit 2b89545248
9 changed files with 234 additions and 111 deletions
+2 -2
View File
@@ -396,7 +396,7 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
child: child!,
),
);
if (picked != null) {
if (picked != null && mounted) {
setState(() => _selectedDate = picked);
}
}
@@ -423,7 +423,7 @@ class _AddTransactionScreenState extends ConsumerState<AddTransactionScreen>
child: child!,
),
);
if (picked != null) {
if (picked != null && mounted) {
setState(() => _selectedTime = picked);
}
}
@@ -27,6 +27,9 @@ class AccountSelector extends ConsumerWidget {
return accountsAsync.when(
data: (accounts) {
if (accounts.isEmpty) {
return const SizedBox.shrink();
}
final txAccountId = ref
.read(addTransactionProvider(initial))
.selectedAccountId;