This commit is contained in:
2026-03-29 15:59:49 +03:00
parent 1f6d129fc2
commit bc8c272e63
21 changed files with 114 additions and 327 deletions
@@ -4,8 +4,7 @@ import 'package:shared_preferences/shared_preferences.dart';
class ExchangeRateService {
static const String _primaryUrl = 'https://open.er-api.com/v6/latest/USD';
static const String _fallbackUrl =
'https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json';
static const String _fallbackUrl = 'https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json';
static const String _cacheKey = 'exchange_rates';
static const Map<String, double> _fallbackRates = {