📜  flutter 访问版本号 - 随便代码示例

📅  最后修改于: 2022-03-11 15:00:33.408000             🧑  作者: Mango

代码示例1
PackageInfo packageInfo = await PackageInfo.fromPlatform();

String appName = packageInfo.appName;
String packageName = packageInfo.packageName;
String version = packageInfo.version;
String buildNumber = packageInfo.buildNumber;