Update release notes pref only after popping
This commit is contained in:
parent
0ce36dc5cf
commit
68dce429ee
1 changed files with 1 additions and 3 deletions
|
|
@ -40,9 +40,7 @@ class _HomeState extends State<Home> {
|
|||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(builder: (context) => const ReleaseNotes()),
|
||||
);
|
||||
|
||||
await prefs.setString('last_shown_version', currentVersion);
|
||||
).then((_) => prefs.setString('last_shown_version', currentVersion));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue