From bb487bb22d239957fddec7eadd60815bc24e379c Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Fri, 8 Apr 2022 12:02:39 +0800 Subject: [PATCH] register adapter --- lib/utils/hive_store.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/hive_store.dart b/lib/utils/hive_store.dart index 08ff7056..5910cf1c 100644 --- a/lib/utils/hive_store.dart +++ b/lib/utils/hive_store.dart @@ -37,7 +37,7 @@ class HiveStore { Hive.registerAdapter(HistoryLoginModelAdapter()); //HiveTypeId:4 Hive.registerAdapter(UserConfigModelAdapter()); //HiveTypeId:5 Hive.registerAdapter(PickedCityModelAdapter()); //HiveTypeId:6 - Hive.registerAdapter(CommunityModelAdapter()); + Hive.registerAdapter(CommunityModelAdapter()); //HiveTypeId:7 _appBox = await Hive.openBox('app'); _userBox = await Hive.openBox('userBox'); _dataBox = await Hive.openBox('dataBox');