From d26898a71164598d4ef73598f8efc48433eecde6 Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 22 Apr 2024 20:11:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A1=E7=AE=97=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E6=9B=B4=E6=96=B0=E7=95=8C=E9=9D=A2=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/about/index.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/pages/about/index.dart b/lib/pages/about/index.dart index af1a4d6b..b24a36f9 100644 --- a/lib/pages/about/index.dart +++ b/lib/pages/about/index.dart @@ -34,7 +34,9 @@ class _AboutPageState extends State { Future getCacheSize() async { final res = await CacheManage().loadApplicationCache(); - setState(() => cacheSize = res); + cacheSize = res; + if (!mounted) return; + setState(() => {}); } @override @@ -379,8 +381,7 @@ class AboutController extends GetxController { aPay() { try { launchUrl( - Uri.parse( - 'https://pilipalanet.mysxl.cn/pilipalaxadmire'), + Uri.parse('https://pilipalanet.mysxl.cn/pilipalaxadmire'), mode: LaunchMode.externalApplication, ); } catch (e) {