Added Localizations and ran small fixes

This commit is contained in:
Arseni
2025-11-25 08:20:09 +03:00
parent 72d8da1fe8
commit fcb5ab4f2c
41 changed files with 444 additions and 233 deletions

View File

@@ -26,7 +26,7 @@ class MockWalletsService implements WalletsService {
Future<Wallet> getWallet(String walletId) async {
return _wallets.firstWhere(
(wallet) => wallet.id == walletId,
orElse: () => throw Exception('Wallet not found'),
orElse: () => throw const WalletNotFoundException(),
);
}
@@ -38,4 +38,11 @@ class MockWalletsService implements WalletsService {
@override
Future<List<Wallet>> deleteWallet() async => [];
}
}
class WalletNotFoundException implements Exception {
const WalletNotFoundException();
@override
String toString() => 'WalletNotFoundException';
}