v0.3.2
flutter_app_version_checker
一个轻量级的 Flutter 插件,用于检查您的应用在 Google Play 商店或 Apple App Store 上是否为最新版本
58喜欢 351近 30 天下载140Pub 分数
AndroidiOS
一个轻量级的 Flutter 插件,用于检查您的应用在 Google Play 商店或 Apple App Store 上是否为最新版本
{"sdk":"flutter"}^0.13.4^1.4.2^1.0.0{"sdk":"flutter"}以下为英文项目原文快照,最新内容请访问 GitHub。
this package is used to check if your app has a new version on playstore or apple app store. or you can even check what is the latest version of another app on playstore or apple app store.
Add App Version Checker to your pubspec:
dependencies:
flutter_app_version_checker: any # or the latest version on Pub
final _checker = AppVersionChecker();
@override
void initState() {
super.initState();
checkVersion();
}
void checkVersion() async {
_checker.checkUpdate().then((value) {
print(value.canUpdate); //return true if update is available
print(value.currentVersion); //return current app version
print(value.newVersion); //return the new app version
print(value.appURL); //return the app url
print(value.errorMessage); //return error message if found else it will return null
});
}
final _checker = AppVersionChecker(
appId: "specify the app id (optional)",
currentVersion: "specify the current version (optional)");
...
final _checker = AppVersionChecker(
appId: "com.vanced.android.youtube",
androidStore: AndroidStore.apkPure,
);
...