CAKE-208 | merged 4.1.0 branch into current and resolved problems

This commit is contained in:
OleksandrSobol 2020-12-18 21:42:00 +02:00
parent 6f386a1efe
commit b1e0bf0edd
2 changed files with 7 additions and 7 deletions

View file

@ -85,14 +85,14 @@ abstract class SettingsStoreBase with Store {
(String languageCode) => sharedPreferences.setString(
PreferencesKey.currentLanguageCode, languageCode));
reaction((_) => balanceDisplayMode,
(BalanceDisplayMode mode) => sharedPreferences.setInt(
PreferencesKey.currentBalanceDisplayModeKey,
mode.serialize()));
this
.nodes
.observe((change) => _saveCurrentNode(change.newValue, change.key));
reaction((_) => balanceDisplayMode,
(BalanceDisplayMode mode) => sharedPreferences.setInt(
PreferencesKey.currentBalanceDisplayModeKey,
mode.serialize()));
}
static const defaultPinLength = 4;

View file

@ -20,8 +20,8 @@ abstract class BalanceViewModelBase with Store {
BalanceViewModelBase(
{@required this.appStore,
@required this.settingsStore,
@required this.fiatConvertationStore}){
@required this.fiatConvertationStore
}){
isReversing = false;
wallet ??= appStore.wallet;