mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CWA-168 | changed current version in settings store
This commit is contained in:
@@ -49,16 +49,7 @@ abstract class SettingsStoreBase with Store {
|
||||
fireImmediately: false);
|
||||
|
||||
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
||||
final version = packageInfo.version;
|
||||
final buildNumber = packageInfo.buildNumber;
|
||||
final List<String> versionList = version.split(RegExp("\\."));
|
||||
currentVersion = "";
|
||||
|
||||
for (int i = 0; i < versionList.length - 1; i++) {
|
||||
currentVersion += versionList[ i ] + ".";
|
||||
}
|
||||
|
||||
currentVersion += buildNumber;
|
||||
currentVersion = packageInfo.version;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user