fix: 缓存清除提示错误

This commit is contained in:
orz12
2024-03-08 14:20:30 +08:00
parent 847140d98c
commit 8d1987d1c9
2 changed files with 3 additions and 6 deletions

View File

@@ -164,11 +164,8 @@ class _AboutPageState extends State<AboutPage> {
),
ListTile(
onTap: () async {
var cleanStatus = await CacheManage().clearCacheAll();
if (cleanStatus) {
getCacheSize();
SmartDialog.showToast('清除成功');
}
await CacheManage().clearCacheAll();
getCacheSize();
},
title: const Text('清除缓存'),
subtitle: Text('图片及网络缓存 $cacheSize', style: subTitleStyle),