Fixed issue with wallet form feild and made page selecor in dashboard into a router

This commit is contained in:
Arseni
2025-11-27 18:07:28 +03:00
parent 44446c6ad4
commit 9c16e27645
7 changed files with 280 additions and 118 deletions

View File

@@ -45,6 +45,7 @@ class PageSelectorProvider extends ChangeNotifier {
}
void selectPage(PayoutDestination dest) {
if (_selected == dest) return;
_selected = dest;
notifyListeners();
}
@@ -95,7 +96,7 @@ class PageSelectorProvider extends ChangeNotifier {
notifyListeners();
}
void goBackFromPayment() {
PayoutDestination goBackFromPayment() {
_selected = _previousDestination ??
(_cameFromRecipientList
? PayoutDestination.recipients
@@ -104,6 +105,7 @@ class PageSelectorProvider extends ChangeNotifier {
_previousDestination = null;
_cameFromRecipientList = false;
notifyListeners();
return _selected;
}
void goBackFromWalletEdit() {
@@ -186,4 +188,4 @@ class PageSelectorProvider extends ChangeNotifier {
Recipient? get selectedRecipient => recipientProvider?.selectedRecipient;
Wallet? get selectedWallet => walletsProvider?.selectedWallet;
}
}