Package selection guidance compiled from public package information, community data, and project usage.
The app_version_update package simplifies checking whether the installed version of an app matches the latest version available on the respective app stores (Google Play Store or Apple App Store). It enables developers to programmatically verify updates without relying on third-party services. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform apps. By comparing local version codes with store versions, it helps prompt users to update when necessary.
Use cases
Check for app updates on launch
Prompt users to update via in-app dialog
Verify version consistency across platforms
Automate update checks in background
Support multi-platform apps
Key features
Cross-platform compatibility
Simple API for version comparison
Integration with Google Play and Apple App Store
Lightweight and dependency-free
Real-time version validation
Suitable for
Cross-platform Flutter apps
Apps requiring automatic update prompts
Developers seeking minimal setup
Projects targeting Android and iOS
Apps needing version sync verification
Considerations
Requires internet access for store queries
Limited to Play Store and App Store
No support for alternative app distribution
Version code format must match store expectations
May require handling rate limits on frequent checks
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Retrieve version and url for local app update against store app
Android and iOS
final appleId = '284882215'; // If this value is null, its packagename will be consideredfinal playStoreId = 'com.facebook.katana'; // If this value is null, its packagename will be consideredawaitAppVersionUpdate.checkForUpdates(
appleId: appleId, playStoreId: playStoreId)
.then((data) async {
print(data.storeUrl);
print(data.storeVersion);
if(data.canUpdate!){
//showDialog(... your custom widgets view) //or use our widgets// AppVersionUpdate.showAlertUpdate// AppVersionUpdate.showBottomSheetUpdate// AppVersionUpdate.showPageUpdateAppVersionUpdate.showAlertUpdate(
appVersionResult: data, context: context);
}
});
Customize the Alert Dialog
// you also have some options to customize our Alert Dialog AppUpdateVersion.showAlertUpdate(
{BuildContext? context,
AppVersionResult? appVersionResult,
bool? mandatory = false,
String? title = 'New version available',
TextStyle titleTextStyle =
constTextStyle(fontSize: 24.0, fontWeight: FontWeight.w500),
String? content = 'Would you like to update your application?',
TextStyle contentTextStyle =
constTextStyle(fontSize: 16.0, fontWeight: FontWeight.w400),
ButtonStyle? cancelButtonStyle = constButtonStyle(
backgroundColor: MaterialStatePropertyAll(Colors.redAccent)),
ButtonStyle? updateButtonStyle = constButtonStyle(
backgroundColor: MaterialStatePropertyAll(Colors.green)),
String? cancelButtonText = 'UPDATE LATER',
String? updateButtonText = 'UPDATE',
TextStyle? cancelTextStyle = constTextStyle(color: Colors.white),
TextStyle? updateTextStyle = constTextStyle(color: Colors.white),
Color? backgroundColor = Colors.white})