static Future<int> getVersion() async { PackageInfo packageInfo = await PackageInfo.fromPlatform(); return packageInfo.buildNumber.toInt(); }