feat: 搜索历史

This commit is contained in:
guozhigq
2023-06-22 22:41:35 +08:00
parent ee250e1aaa
commit 48c6c27a24
6 changed files with 145 additions and 27 deletions

View File

@ -11,6 +11,7 @@ class GStrorage {
static late final Box recVideo;
static late final Box userInfo;
static late final Box hotKeyword;
static late final Box historyword;
static Future<void> init() async {
final dir = await getApplicationDocumentsDirectory();
@ -25,6 +26,8 @@ class GStrorage {
userInfo = await Hive.openBox('userInfo');
// 热搜关键词
hotKeyword = await Hive.openBox('hotKeyword');
// 搜索历史
historyword = await Hive.openBox('historyWord');
}
static regAdapter() {