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
@@ -377,7 +377,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
mainAxisSize: MainAxisSize.min,
children: [
if (!dash.isAddingAccount &&
(ref.watch(accountsProvider).valueOrNull?.length ?? 0) >
(ref.watch(accountsProvider).value?.length ?? 0) >
1) ...[
GestureDetector(
onTap: () => setState(() => _showDeleteDialog = true),
@@ -588,7 +588,7 @@ class AccountColorPanel extends StatelessWidget {
final accounts =
ProviderScope.containerOf(
dashboardContext,
).read(accountsProvider).valueOrNull ??
).read(accountsProvider).value ??
[];
if (isDuplicateName(
@@ -56,7 +56,7 @@ class AccountDeleteDialog extends ConsumerWidget {
onConfirm();
final txs = ref.read(transactionsProvider).valueOrNull ?? [];
final txs = ref.read(transactionsProvider).value ?? [];
final accountTxs = txs
.where((t) => t.accountId == accountId)
.toList();