-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/upgrade announcer widget #464
base: master
Are you sure you want to change the base?
Feature/upgrade announcer widget #464
Conversation
… the widget tree. Uses a MaterialBanner with showMaterialBanner.
… the widget tree. Uses a MaterialBanner with showMaterialBanner. Added widget tests.
… the widget tree. Uses a MaterialBanner with showMaterialBanner.
When set to true this will enforce an upgrade based on the Upgrader.minAppVersion version.
@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 We already use the |
…Announcer.showReleaseNotesBottomSheet
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #464 +/- ##
==========================================
+ Coverage 90.56% 91.38% +0.82%
==========================================
Files 13 14 +1
Lines 1229 1382 +153
==========================================
+ Hits 1113 1263 +150
- Misses 116 119 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.