opt in-app fullscreen

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-09-26 10:26:27 +08:00
parent d961b6d7a9
commit 86a79a9733
10 changed files with 25 additions and 31 deletions

View File

@@ -631,13 +631,13 @@ abstract class PageUtils {
}
}
static Future<void> launchURL(String url) async {
static Future<void> launchURL(
String url, {
LaunchMode mode = LaunchMode.externalApplication,
}) async {
try {
final Uri uri = Uri.parse(url);
if (!await launchUrl(
uri,
mode: LaunchMode.externalApplication,
)) {
if (!await launchUrl(uri, mode: mode)) {
SmartDialog.showToast('Could not launch $url');
}
} catch (e) {