only show release notes on major or minor version updates
This commit is contained in:
parent
b925b5722a
commit
402ad361e5
1 changed files with 5 additions and 1 deletions
|
|
@ -34,7 +34,11 @@ class _HomeState extends State<Home> {
|
|||
final currentVersion = packageInfo.version;
|
||||
final storedVersion = prefs.getString('last_shown_version');
|
||||
|
||||
if (storedVersion == null || storedVersion != currentVersion) {
|
||||
// Extract major.minor version (ignore patch)
|
||||
final currentMajorMinor = currentVersion.split('.').take(2).join('.');
|
||||
final storedMajorMinor = storedVersion?.split('.').take(2).join('.');
|
||||
|
||||
if (storedMajorMinor == null || storedMajorMinor != currentMajorMinor) {
|
||||
if (!mounted) return;
|
||||
|
||||
Navigator.push(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue