mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 10:25:28 +03:00
update
This commit is contained in:
@@ -188,17 +188,10 @@ class AccountDropdownOverlay extends ConsumerWidget {
|
|||||||
final txAccountId = ref
|
final txAccountId = ref
|
||||||
.read(addTransactionProvider(initial))
|
.read(addTransactionProvider(initial))
|
||||||
.selectedAccountId;
|
.selectedAccountId;
|
||||||
final toAccountId = ref
|
|
||||||
.read(addTransactionProvider(initial))
|
|
||||||
.toAccountId;
|
|
||||||
|
|
||||||
final availableAccounts = accounts
|
|
||||||
.where((a) => toAccountId == null || a.id != toAccountId)
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: availableAccounts.map((account) {
|
children: accounts.map((account) {
|
||||||
final isSelected =
|
final isSelected =
|
||||||
txAccountId != null && account.id == txAccountId;
|
txAccountId != null && account.id == txAccountId;
|
||||||
return InkWell(
|
return InkWell(
|
||||||
|
|||||||
Reference in New Issue
Block a user