mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 20:12:35 +08:00
opt in-app fullscreen
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -213,8 +213,7 @@ abstract class SettingBoxKey {
|
||||
enableGradientBg = 'enableGradientBg',
|
||||
navBarSort = 'navBarSort',
|
||||
tempPlayerConf = 'tempPlayerConf',
|
||||
reduceLuxColor = 'reduceLuxColor',
|
||||
nativeFullscreen = 'nativeFullscreen';
|
||||
reduceLuxColor = 'reduceLuxColor';
|
||||
}
|
||||
|
||||
abstract class LocalCacheKey {
|
||||
|
||||
@@ -832,7 +832,4 @@ abstract class Pref {
|
||||
|
||||
static bool get keyboardControl =>
|
||||
_setting.get(SettingBoxKey.keyboardControl, defaultValue: true);
|
||||
|
||||
static bool get nativeFullscreen =>
|
||||
_setting.get(SettingBoxKey.nativeFullscreen, defaultValue: true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user