- Rename calculateAmount to fetchRate to be more descriptive

- Add Disable Exchange change reaction to save in shared prefs [skip ci]
This commit is contained in:
OmarHatem
2022-12-08 21:14:42 +02:00
parent d0c22aa082
commit 4b1e9a10eb
8 changed files with 13 additions and 8 deletions
+5
View File
@@ -115,6 +115,11 @@ abstract class SettingsStoreBase with Store {
(BalanceDisplayMode mode) => sharedPreferences.setInt(
PreferencesKey.currentBalanceDisplayModeKey, mode.serialize()));
reaction(
(_) => disableExchange,
(bool disableExchange) => sharedPreferences.setBool(
PreferencesKey.disableExchangeKey, disableExchange));
this
.nodes
.observe((change) {