NEW: MIH Calculator Provider Setup

This commit is contained in:
2025-10-08 15:06:04 +02:00
parent a1b7a3ef28
commit bbadc58ab8
5 changed files with 174 additions and 170 deletions

View File

@@ -0,0 +1,21 @@
import 'package:flutter/foundation.dart';
class MihCalculatorProvider extends ChangeNotifier {
List<String> availableCurrencies;
int toolIndex;
MihCalculatorProvider({
this.availableCurrencies = const [],
this.toolIndex = 0,
});
void setToolIndex(int index) {
toolIndex = index;
notifyListeners();
}
void setAvailableCurrencies({required List<String> currencies}) async {
availableCurrencies = currencies;
notifyListeners();
}
}