Open twklessor opened 1 month ago
@larryaasen We are considering making a fork of this package with our additions if it doesn't "fit the cake" but frankly we want to avoid that. We want to give back what you've already given us. We are very open to any feedback, changes or improvements. The UpgradeAnnouncer
does have some overlapping features compared to the UpgradeAlert
but they do compliment each other.
We already use the UpgradeAnnouncer
in 2 production apps.
Add
UpgradeAnnouncer
widget. This widget should be used at the top of the widget tree just belowMaterialApp
. Uses aMaterialBanner
withshowMaterialBanner
. We utilize thescaffoldMessengerKey
to make this possible.This has a distinct advantage over the
UpgradeAlert
as theMaterialBanner
is shown globally; also during navigation.This is the
MaterialBanner
shown globally;When the
MaterialBanner
is tapped a bottom sheet is shown with the appropriate release notes;The
UpgradeAnnouncer
also supports what is calledenforceUpgrade
which uses theUpgrader.minAppVersion
to enforce an update if the current version is lower. This presents a dialog that cannot be dismissed; similar to what theUpgradeAlert
supports;Simple example of usage;
Example with customizable icons, text styles and colors;
This new
UpgradeAnnouncer
widget is fully backed by a test.