opt: launchUrl

This commit is contained in:
bggRGjQaUbCoE
2024-10-06 12:20:44 +08:00
parent 7c0347c28d
commit 3fa2896499
4 changed files with 10 additions and 4 deletions

View File

@@ -91,7 +91,10 @@ class Utils {
static launchURL(String url) async {
try {
final Uri uri = Uri.parse(url);
if (!await launchUrl(uri)) {
if (!await launchUrl(
uri,
mode: LaunchMode.externalApplication,
)) {
SmartDialog.showToast('Could not launch $url');
}
} catch (e) {