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) {