CWA-168 | changed current version in settings store

This commit is contained in:
Oleksandr Sobol 2020-02-03 21:41:58 +02:00
parent 6ee4ddda09
commit 524f23b1db

View file

@ -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;
});
}