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,
);
...