mod: 依赖升级

This commit is contained in:
guozhigq
2023-07-25 10:46:02 +08:00
parent 85eeacebb8
commit ec4c94cf5e
12 changed files with 281 additions and 266 deletions

View File

@ -25,10 +25,6 @@ class GStrorage {
recVideo = await Hive.openBox('recVideo');
// 登录用户信息
userInfo = await Hive.openBox('userInfo');
// 热搜关键词
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
// 本地缓存
localCache = await Hive.openBox('localCache');
}
@ -43,6 +39,13 @@ class GStrorage {
Hive.registerAdapter(HotSearchModelAdapter());
Hive.registerAdapter(HotSearchItemAdapter());
}
static Future<void> lazyInit() async {
// 热搜关键词
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
}
}
// 约定 key