Package selection guidance compiled from public package information, community data, and project usage.
Versionarte is a Flutter package that enables developers to enforce app updates, display custom update indicators, and temporarily disable the app during maintenance. It provides full control over the UI for update prompts and maintenance screens, ensuring users are always on the latest version or aware of downtime. Designed for cross-platform apps, it works seamlessly across Android, iOS, Web, macOS, and Windows. The package integrates easily via pub add and offers flexibility in handling version checks and user experience during updates.
Use cases
Enforce mandatory app updates
Display custom update banners
Show maintenance mode screens
Handle version compatibility
Manage user access during downtime
Customize update UI per platform
Key features
Full UI customization for update screens
Support for multiple platforms
Flexible version check logic
Maintenance mode enforcement
Easy integration with pub
Configurable update triggers
Suitable for
Apps requiring strict version control
Developers needing custom update UX
Cross-platform applications
Teams managing frequent releases
Apps with scheduled maintenance windows
Projects prioritizing user experience during updates
Considerations
Requires manual configuration of version checks
UI components must be implemented by developer
May need backend support for version validation
Not suitable for apps without update policies
Limited built-in analytics
Depends on accurate version tracking
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
versionarte
Force update, show update indicator and disable the app for maintenance with total freedom over the UI.
😎 Benefits
✋ Force users to update to the latest version
💆🏻♂️ Have separate values for each platform
🚧 Disable app for maintenance with custom informative text
🆕 Inform users about an optional update availability
🔗 Launch the App Store on iOS and Play Store on Android
Use the status value to determine what action to take:
if (result.status == VersionarteStatus.inactive) {
// App is in maintenance modefinalString message = result.getMessageForLanguage('en');
showMaintenanceDialog(message);
} elseif (result.status == VersionarteStatus.forcedUpdate) {
// User must update to continueshowForceUpdateDialog(
onUpdate: () {
Versionarte.launchDownloadUrl(result.downloadUrls);
},
);
} elseif (result.status == VersionarteStatus.outdated) {
// Update available but optionalshowOptionalUpdateDialog(
onUpdate: () {
Versionarte.launchDownloadUrl(result.downloadUrls);
},
);
}
Tip: You can also show different widgets based on status. For example, when the app is outdated, you might want to show an update indicator anywhere in your app (for example in home page):
Widgetbuild(BuildContext context) {
returnColumn(
children: [
// other widgets if (result.status == VersionarteStatus.outdated)
// A custom widget to show "Update available"NewVersionAvailableIndicator(
onUpdate: () {
Versionarte.launchDownloadUrl(result.downloadUrls);
}
),
// other widgets
],
);
}
🔗 Launching the Store
To open the appropriate store for the current platform:
Note: Add "download_url" in your configuration JSON for each platform. The correct store opens automatically based on the current platform.
See the example directory for a complete sample app.
🖋️ Configuration JSON
The configuration JSON contains versioning and status information for each platform. Only configure platforms that your app supports.
{
"android": {
"version": {
"minimum": "2.7.0", // Minimum required version"latest": "2.8.0"// Latest available version
},
"download_url": "https://play.google.com/store/apps/details?id=app.example",
"status": {
"active": true, // Whether app is currently active"message": { // Only needed if active is false"en": "App is in maintenance mode, please come back later.",
"es": "La aplicación está en modo de mantenimiento, vuelva más tarde."
}
}
},
"iOS": {
// Same structure as Android
},
// Optional: Include other platforms if needed (macOS, windows, linux)
}
🐞 Need help?
If you encounter any problems or need a feature, please raise a ticket on GitHub.