app_upgrade_checker 1.1.0
app_upgrade_checker: ^1.1.0 copied to clipboard
Check for a newer app version from the store (App Store / Google Play) or your own backend, and prompt users to update with a themeable full screen, dialog or bottom sheet.
1.1.0 #
Added #
onUpdate— run your own action instead of opening the store.onSkip— run your own action instead of dismissing.- A loading state on the button while an asynchronous
onUpdateruns. progress— drive that loading state from your own download.UpdateButtonStyle.sweepDuration,sweepColor,progressText.
Fixed #
viewTypeanddialogEntranceonrocketUp()andsuperHero().- A crash when the update action settled after the prompt was dismissed.
Docs #
- New README section: Your own update action.
AppUpgrade.showparameter reference.- Example app: a real download on the button.
- Documentation and package metadata improvements.
Thanks #
- @Ahmed-Ibrahim-a-a for pointing out that an update doesn't always hand off to the store — which prompted #1 and this feature.
1.0.1 #
viewType— show the update as a full screen, a dialog or a bottom sheet.dialogEntrance—popIn,slideUp,fade,nonefor the dialog and sheet.AppUpgrade.showreplacesshowUpdateDialog, now deprecated.
1.0.0 #
Initial release.
- Store sources:
PlayStoreSource,AppStoreSource. CustomSource— your own backend or a static JSON file.AppConfig(android:, ios:)— one source per platform.AppUpgrade.checkUpdate()andAppUpgrade.checkAndPrompt().UpdateCheckResult:UpdateAvailable/NoUpdate/UpdateCheckError.- Forced updates via
minSupportedVersionCodeorForcePolicy. AppUpgradeScreenwith three designs, 28 theme fields and abuilderescape hatch.UpdateEntrance— seven entrance animations;UpdatePulsefor the button.- Seven languages with automatic RTL.
UpdatePreview— see the screen before the app is published.- Android and iOS only.
