获取应用版本号
static Future<String> getVersionCode() async { PackageInfo packageInfo = await PackageInfo.fromPlatform(); return packageInfo.buildNumber; }