Skip to content

Commit 64a57a5

Browse files
authored
Merge pull request #396 from flow-mn:develop
Develop
2 parents e0d5ab2 + 4fdca88 commit 64a57a5

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

lib/prefs/local_preferences.dart

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,6 @@ class LocalPreferences {
227227
static LocalPreferences? _instance;
228228

229229
static Future<void> initialize() async {
230-
final withCache = await SharedPreferencesWithCache.create(
231-
cacheOptions: SharedPreferencesWithCacheOptions(),
232-
);
233-
234230
try {
235231
await _migrateFromLegacy("migrate-d6bf17de-7a59-493c-aa79-30bcd848021e");
236232
} catch (e) {
@@ -240,6 +236,10 @@ class LocalPreferences {
240236
);
241237
}
242238

239+
final withCache = await SharedPreferencesWithCache.create(
240+
cacheOptions: SharedPreferencesWithCacheOptions(),
241+
);
242+
243243
_instance ??= LocalPreferences._internal(withCache);
244244
}
245245

@@ -285,7 +285,6 @@ class LocalPreferences {
285285
}
286286

287287
await neuePrefs.setBool(migrationCompletedKey, true);
288-
await neuePrefs.reloadCache();
289288

290289
return;
291290
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: A personal finance managing app
33

44
publish_to: "none" # Remove this line if you wish to publish to pub.dev
55

6-
version: "0.12.2+167"
6+
version: "0.12.2+168"
77

88
environment:
99
sdk: ">=3.7.0 <4.0.0"

0 commit comments

Comments
 (0)