feat:更新代办事项存储功能

This commit is contained in:
2025-11-07 21:24:09 +08:00
parent 00e65bc5be
commit 27f0638c01
9 changed files with 80 additions and 92 deletions

View File

@@ -18,10 +18,9 @@ void main() async{
Hive.registerAdapter(TodoAdapter());
// 打开Box
await Hive.openBox<Todo>('todos');
final todosBox = await Hive.openBox<Todo>('todos');
final appDir = await getApplicationDocumentsDirectory();
print('📁 Hive数据库路径: ${appDir.path}');
todosBox.clear();
runApp(const MyApp());
}