Switch to lazyBox

This commit is contained in:
Matthias Rupp 2022-10-17 16:40:51 +02:00
parent d310c77fc8
commit d08475d5af
6 changed files with 23 additions and 22 deletions

View file

@ -37,8 +37,14 @@ void main() async {
await Hive.openBox<HiveBackupAlbums>(hiveBackupInfoBox);
await Hive.openBox(hiveGithubReleaseInfoBox);
await Hive.openBox(userSettingInfoBox);
await Hive.openBox(assetListCacheBox);
await Hive.openBox(albumListCacheBox);
final sw = Stopwatch();
sw.start();
await Hive.openLazyBox(assetListCacheBox);
await Hive.openLazyBox(albumListCacheBox);
debugPrint("Hive box open took ${sw.elapsedMilliseconds} ms");
SystemChrome.setSystemUIOverlayStyle(
const SystemUiOverlayStyle(