fix: 清除缓存提示 issues #619
This commit is contained in:
@ -201,7 +201,6 @@ class _AboutPageState extends State<AboutPage> {
|
||||
var cleanStatus = await CacheManage().clearCacheAll();
|
||||
if (cleanStatus) {
|
||||
getCacheSize();
|
||||
SmartDialog.showToast('清除成功');
|
||||
}
|
||||
},
|
||||
title: const Text('清除缓存'),
|
||||
|
@ -99,10 +99,8 @@ class CacheManage {
|
||||
try {
|
||||
// 清除缓存 图片缓存
|
||||
await clearLibraryCache();
|
||||
Timer(const Duration(milliseconds: 500), () {
|
||||
SmartDialog.dismiss().then((res) {
|
||||
SmartDialog.showToast('清除完成');
|
||||
});
|
||||
SmartDialog.dismiss().then((res) {
|
||||
SmartDialog.showToast('清除完成');
|
||||
});
|
||||
} catch (err) {
|
||||
SmartDialog.dismiss();
|
||||
|
Reference in New Issue
Block a user