flutter-hive-database
Installation
SKILL.md
Flutter Hive 数据库封装
存储策略
模型 → toJson() → Box<Map> → fromJson() → 模型
- 无需 TypeAdapter,无 ~200 个类型上限
- 无需
build_runner,依赖精简 - HiveService 懒加载 Box,新增模型无需修改 Service
模型 → toJson() → Box<Map> → fromJson() → 模型
build_runner,依赖精简