This commit is contained in:
2026-03-20 10:58:35 +03:00
parent 047d5bdf36
commit d8b0da1448
5 changed files with 259 additions and 204 deletions
+6
View File
@@ -21,6 +21,12 @@ class BudgetNotifier extends StateNotifier<double?> {
await _storage.saveBudget(budget);
state = budget;
}
void onCurrencyChanged(String oldCode, String newCode, ExchangeRateService rates) {
if (state == null) return;
final converted = rates.convert(state!, oldCode, newCode);
setBudget(converted);
}
}
// Currency info: symbol and code