flutter_in_store_app_version_checker

Creator: coderz1093

Last updated:

Add to Cart

Description:

flutter in store app version checker

flutter_in_store_app_version_checker #
Description #
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.
Installation #
Add InStoreAppVersionChecker to your pubspec:
dependencies:
flutter_in_store_app_version_checker: any # or the latest version on Pub
copied to clipboard
Example #
Initialize #
final _checker = InStoreAppVersionChecker();
copied to clipboard
Or
final _checker = InStoreAppVersionChecker(
appId: 'Specify the app id', // Optional
currentVersion: 'Specify the current version', // Optional
);
copied to clipboard
Usage #
@override
void initState() {
super.initState();
checkVersion();
}

void checkVersion() async {
_checker.checkUpdate().then((value) {
log(value.appURL); // Return the app url
log(value.canUpdate); // Return true if update is available
log(value.currentVersion); // Return current app version
log(value.errorMessage); // Return error message if found else it will return null
log(value.newVersion); // Return the new app version
});
}
copied to clipboard
Use on Apk Pure Store #
final _checker = InStoreAppVersionChecker(
appId: 'Specify the app id',
androidStore: AndroidStore.apkPure,
);
copied to clipboard
Coverage #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.