Add intro popup dialog
This commit is contained in:
parent
145471dcba
commit
8642eac9b2
2 changed files with 61 additions and 3 deletions
|
|
@ -25,13 +25,11 @@ void main() async {
|
|||
|
||||
// Workaround for clearing stored tokens on uninstall.
|
||||
// If first time running app, will clear all tokens in the secure storage.
|
||||
if (prefs.getBool('first_run') ?? true) {
|
||||
if (prefs.getBool('first_run') != false) {
|
||||
debugPrint('Clearing secure storage...');
|
||||
const storage = FlutterSecureStorage();
|
||||
|
||||
await storage.deleteAll();
|
||||
|
||||
prefs.setBool('first_run', false);
|
||||
}
|
||||
|
||||
// With the shared preferences instance, obtain the existing user settings if it exists.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue