wallet card redesign

This commit is contained in:
Arseni
2026-03-06 17:48:36 +03:00
parent 2b0ada1541
commit 281b3834d3
29 changed files with 927 additions and 287 deletions

View File

@@ -229,7 +229,7 @@ RouteBase payoutShellRoute() => ShellRoute(
_startPayment(context, recipient: null, paymentType: type),
onTopUp: (wallet) => _openWalletTopUp(context, wallet),
onLedgerAddFunds: (account) => _openLedgerAddFunds(context, account),
onWalletTap: (wallet) => _openWalletEdit(context, wallet),
onWalletTap: (wallet) => _openWalletTopUp(context, wallet),
onLedgerTap: (account) => _openLedgerEdit(context, account),
),
),
@@ -385,12 +385,6 @@ void _openEditRecipient(BuildContext context, {required Recipient recipient}) {
context.pushNamed(PayoutRoutes.editRecipient);
}
void _openWalletEdit(BuildContext context, Wallet wallet) {
context.read<PaymentSourceController>().selectWallet(wallet);
context.read<WalletsController>().selectWallet(wallet);
context.pushToEditWallet();
}
void _openLedgerEdit(BuildContext context, LedgerAccount account) {
context.read<PaymentSourceController>().selectLedgerByRef(
account.ledgerAccountRef,