mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-11 20:00:12 +08:00
custom show fs lock btn
Closes #1150 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -42,6 +42,13 @@ List<SettingsModel> get playSettings => [
|
|||||||
setKey: SettingBoxKey.autoPlayEnable,
|
setKey: SettingBoxKey.autoPlayEnable,
|
||||||
defaultVal: false,
|
defaultVal: false,
|
||||||
),
|
),
|
||||||
|
const SettingsModel(
|
||||||
|
settingsType: SettingsType.sw1tch,
|
||||||
|
title: '全屏显示锁定按钮',
|
||||||
|
leading: Icon(Icons.lock_outline),
|
||||||
|
setKey: SettingBoxKey.showFsLockBtn,
|
||||||
|
defaultVal: true,
|
||||||
|
),
|
||||||
const SettingsModel(
|
const SettingsModel(
|
||||||
settingsType: SettingsType.sw1tch,
|
settingsType: SettingsType.sw1tch,
|
||||||
title: '全屏显示截图按钮',
|
title: '全屏显示截图按钮',
|
||||||
|
|||||||
@@ -327,6 +327,7 @@ class PlPlayerController {
|
|||||||
late final horizontalPreview = Pref.horizontalPreview;
|
late final horizontalPreview = Pref.horizontalPreview;
|
||||||
late final showDmChart = Pref.showDmChart;
|
late final showDmChart = Pref.showDmChart;
|
||||||
late final showFsScreenshotBtn = Pref.showFsScreenshotBtn;
|
late final showFsScreenshotBtn = Pref.showFsScreenshotBtn;
|
||||||
|
late final showFsLockBtn = Pref.showFsLockBtn;
|
||||||
|
|
||||||
late final bool autoExitFullscreen = Pref.autoExitFullscreen;
|
late final bool autoExitFullscreen = Pref.autoExitFullscreen;
|
||||||
late final bool autoPlayEnable = Pref.autoPlayEnable;
|
late final bool autoPlayEnable = Pref.autoPlayEnable;
|
||||||
|
|||||||
@@ -1571,7 +1571,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
|
|||||||
),
|
),
|
||||||
|
|
||||||
// 锁
|
// 锁
|
||||||
if (!isLive && isFullScreen)
|
if (!isLive && isFullScreen && plPlayerController.showFsScreenshotBtn)
|
||||||
ViewSafeArea(
|
ViewSafeArea(
|
||||||
right: false,
|
right: false,
|
||||||
child: Align(
|
child: Align(
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ class SettingBoxKey {
|
|||||||
directExitOnBack = 'directExitOnBack',
|
directExitOnBack = 'directExitOnBack',
|
||||||
quickFavId = 'quickFavId',
|
quickFavId = 'quickFavId',
|
||||||
showFsScreenshotBtn = 'showFsScreenshotBtn',
|
showFsScreenshotBtn = 'showFsScreenshotBtn',
|
||||||
|
showFsLockBtn = 'showFsLockBtn',
|
||||||
silentDownImg = 'silentDownImg';
|
silentDownImg = 'silentDownImg';
|
||||||
|
|
||||||
static const String subtitlePreferenceV2 = 'subtitlePreferenceV2',
|
static const String subtitlePreferenceV2 = 'subtitlePreferenceV2',
|
||||||
|
|||||||
@@ -793,6 +793,9 @@ class Pref {
|
|||||||
static bool get showFsScreenshotBtn =>
|
static bool get showFsScreenshotBtn =>
|
||||||
_setting.get(SettingBoxKey.showFsScreenshotBtn, defaultValue: true);
|
_setting.get(SettingBoxKey.showFsScreenshotBtn, defaultValue: true);
|
||||||
|
|
||||||
|
static bool get showFsLockBtn =>
|
||||||
|
_setting.get(SettingBoxKey.showFsLockBtn, defaultValue: true);
|
||||||
|
|
||||||
static bool get silentDownImg =>
|
static bool get silentDownImg =>
|
||||||
_setting.get(SettingBoxKey.silentDownImg, defaultValue: false);
|
_setting.get(SettingBoxKey.silentDownImg, defaultValue: false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user