mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-23 06:38:35 +02:00
Merge branch 'master' into CWA-169-add-morph-exchange-to-the-app
This commit is contained in:
@@ -12,6 +12,7 @@ import 'package:cake_wallet/src/stores/action_list/action_list_display_mode.dart
|
||||
import 'package:cake_wallet/src/screens/settings/items/item_headers.dart';
|
||||
import 'package:cake_wallet/generated/i18n.dart';
|
||||
import 'package:cake_wallet/src/domain/common/default_settings_migration.dart';
|
||||
import 'package:package_info/package_info.dart';
|
||||
|
||||
part 'settings_store.g.dart';
|
||||
|
||||
@@ -46,6 +47,9 @@ abstract class SettingsStoreBase with Store {
|
||||
(dynamic _) => _sharedPreferences.setInt(displayActionListModeKey,
|
||||
serializeActionlistDisplayModes(actionlistDisplayMode)),
|
||||
fireImmediately: false);
|
||||
|
||||
PackageInfo.fromPlatform().then((PackageInfo packageInfo) => currentVersion = packageInfo.version);
|
||||
|
||||
}
|
||||
|
||||
static const currentNodeIdKey = 'current_node_id';
|
||||
@@ -143,6 +147,7 @@ abstract class SettingsStoreBase with Store {
|
||||
|
||||
SharedPreferences _sharedPreferences;
|
||||
Box<Node> _nodes;
|
||||
String currentVersion;
|
||||
|
||||
@action
|
||||
Future setAllowBiometricalAuthentication(
|
||||
@@ -264,7 +269,8 @@ abstract class SettingsStoreBase with Store {
|
||||
ItemHeaders.darkMode: S.current.settings_dark_mode,
|
||||
ItemHeaders.support: S.current.settings_support,
|
||||
ItemHeaders.termsAndConditions: S.current.settings_terms_and_conditions,
|
||||
ItemHeaders.faq: S.current.faq
|
||||
ItemHeaders.faq: S.current.faq,
|
||||
ItemHeaders.version: S.current.version(currentVersion)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user