mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 02:15:29 +03:00
update
This commit is contained in:
@@ -136,7 +136,7 @@ class AccountDropdownOverlay extends ConsumerWidget {
|
|||||||
|
|
||||||
double top = 76;
|
double top = 76;
|
||||||
double left = 20;
|
double left = 20;
|
||||||
double triggerWidth = 200;
|
double triggerWidth = 200;
|
||||||
|
|
||||||
if (triggerKey?.currentContext != null) {
|
if (triggerKey?.currentContext != null) {
|
||||||
final triggerBox =
|
final triggerBox =
|
||||||
@@ -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