mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
CWA-168 | changed current version in settings store
This commit is contained in:
parent
6ee4ddda09
commit
524f23b1db
1 changed files with 1 additions and 10 deletions
|
@ -49,16 +49,7 @@ abstract class SettingsStoreBase with Store {
|
||||||
fireImmediately: false);
|
fireImmediately: false);
|
||||||
|
|
||||||
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
||||||
final version = packageInfo.version;
|
currentVersion = 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;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue