diff --git a/lib/src/screens/settings/items/item_headers.dart b/lib/src/screens/settings/items/item_headers.dart index 4ab7732c1..cc8a3b9aa 100644 --- a/lib/src/screens/settings/items/item_headers.dart +++ b/lib/src/screens/settings/items/item_headers.dart @@ -14,4 +14,5 @@ class ItemHeaders { static const support = 'Support'; static const termsAndConditions = 'Terms and conditions'; static const faq = 'FAQ'; + static const version = 'Version'; } \ No newline at end of file diff --git a/lib/src/screens/settings/settings.dart b/lib/src/screens/settings/settings.dart index 72602c4d8..906be11cd 100644 --- a/lib/src/screens/settings/settings.dart +++ b/lib/src/screens/settings/settings.dart @@ -279,7 +279,12 @@ class SettingsFormState extends State { SettingsItem( onTaped: () => Navigator.pushNamed(context, Routes.faq), title: ItemHeaders.faq, - attribute: Attributes.arrow) + attribute: Attributes.arrow), + SettingsItem( + onTaped: () {}, + title: ItemHeaders.version, + widget: null, + attribute: Attributes.widget) ]); setState(() {}); } diff --git a/lib/src/stores/settings/settings_store.dart b/lib/src/stores/settings/settings_store.dart index ef6f11236..b9a78d24f 100644 --- a/lib/src/stores/settings/settings_store.dart +++ b/lib/src/stores/settings/settings_store.dart @@ -46,6 +46,8 @@ abstract class SettingsStoreBase with Store { (dynamic _) => _sharedPreferences.setInt(displayActionListModeKey, serializeActionlistDisplayModes(actionlistDisplayMode)), fireImmediately: false); + + currentVersion = _sharedPreferences.getInt('current_default_settings_migration_version'); } static const currentNodeIdKey = 'current_node_id'; @@ -143,6 +145,7 @@ abstract class SettingsStoreBase with Store { SharedPreferences _sharedPreferences; Box _nodes; + int currentVersion; @action Future setAllowBiometricalAuthentication( @@ -264,7 +267,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: 'Version 1.0.$currentVersion' }); }