diff --git a/packages/neon/neon/lib/src/settings/models/storage.dart b/packages/neon/neon/lib/src/settings/models/storage.dart index 2169c182..349845ab 100644 --- a/packages/neon/neon/lib/src/settings/models/storage.dart +++ b/packages/neon/neon/lib/src/settings/models/storage.dart @@ -32,6 +32,10 @@ class AppStorage implements SettingsStorage { /// /// Required to be called before accessing [reqireDatabase]. static Future init() async { + if (_sharedPreferences != null) { + return; + } + _sharedPreferences = await SharedPreferences.getInstance(); }