Multiple Wallet support, history of each wallet and updated payment page

This commit is contained in:
Arseni
2025-11-21 19:22:23 +03:00
parent 4c64a8d6e6
commit 87636a7ec3
68 changed files with 2154 additions and 701 deletions

View File

@@ -13,7 +13,7 @@ class WalletsProvider with ChangeNotifier {
bool _isLoading = false;
String? _error;
Wallet? _selectedWallet;
bool _isHidden = true;
final bool _isHidden = true;
List<Wallet>? get wallets => _wallets;
bool get isLoading => _isLoading;
@@ -120,6 +120,11 @@ class WalletsProvider with ChangeNotifier {
if (index != null && index >= 0) {
final wallet = _wallets![index];
_wallets![index] = wallet.copyWith(isHidden: !wallet.isHidden);
if (_selectedWallet?.id == walletId) {
_selectedWallet = _wallets![index];
}
notifyListeners();
}
}