mod: 优化hive存储占用

This commit is contained in:
guozhigq
2023-08-15 13:06:04 +08:00
parent 3c9a97181b
commit d064873dce
2 changed files with 44 additions and 4 deletions

View File

@ -93,6 +93,12 @@ class _MainAppState extends State<MainApp> with SingleTickerProviderStateMixin {
}
}
@override
void dispose() async {
await GStrorage.close();
super.dispose();
}
@override
Widget build(BuildContext context) {
Box localCache = GStrorage.localCache;