From 115a7af9f0aebfa0595bfa66100b4a36e0fb2da7 Mon Sep 17 00:00:00 2001 From: Uriah Xuan Date: Fri, 15 Dec 2023 13:09:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E3=80=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=B7=B3=E8=BD=89=E5=87=BA=E7=8F=BE=E7=95=B0=E5=B8=B8=E3=80=8D?= =?UTF-8?q?=20(#211)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: use launchUrl and mode to replace canLaunchUrl * Style: Formatted --- lib/src/version/update/app_update.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/version/update/app_update.dart b/lib/src/version/update/app_update.dart index 93c3cb70..6cb2c2ae 100644 --- a/lib/src/version/update/app_update.dart +++ b/lib/src/version/update/app_update.dart @@ -85,7 +85,7 @@ class AppUpdate { static void _openAppStore() async { final url = AppLink.storeUrlString; if (await canLaunchUrl(Uri.parse(url))) { - await canLaunchUrl(Uri.parse(url)); + await launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication); } } }