Multiple Wallet support, history of each wallet and updated payment page
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user