fix: 计算缓存大小更新界面异常

This commit is contained in:
orz12
2024-04-22 20:11:11 +08:00
parent ebde193883
commit d26898a711

View File

@@ -34,7 +34,9 @@ class _AboutPageState extends State<AboutPage> {
Future<void> getCacheSize() async { Future<void> getCacheSize() async {
final res = await CacheManage().loadApplicationCache(); final res = await CacheManage().loadApplicationCache();
setState(() => cacheSize = res); cacheSize = res;
if (!mounted) return;
setState(() => {});
} }
@override @override
@@ -379,8 +381,7 @@ class AboutController extends GetxController {
aPay() { aPay() {
try { try {
launchUrl( launchUrl(
Uri.parse( Uri.parse('https://pilipalanet.mysxl.cn/pilipalaxadmire'),
'https://pilipalanet.mysxl.cn/pilipalaxadmire'),
mode: LaunchMode.externalApplication, mode: LaunchMode.externalApplication,
); );
} catch (e) { } catch (e) {