This commit is contained in:
orz12
2024-06-17 01:26:52 +08:00
parent ff3484e4b5
commit 45aaa3d075
95 changed files with 282 additions and 282 deletions

View File

@@ -83,7 +83,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
final RxDouble _distance = 0.0.obs;
final RxBool _volumeInterceptEventStream = false.obs;
Box setting = GStrorage.setting;
Box setting = GStorage.setting;
late FullScreenMode mode;
late int defaultBtmProgressBehavior;
late bool enableQuickDouble;
@@ -145,7 +145,7 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
widget.controller.bottomControl = widget.bottomControl;
widget.controller.danmuWidget = widget.danmuWidget;
defaultBtmProgressBehavior = setting.get(SettingBoxKey.btmProgressBehavior,
defaultValue: BtmProgresBehavior.values.first.code);
defaultValue: BtmProgressBehavior.values.first.code);
enableQuickDouble =
setting.get(SettingBoxKey.enableQuickDouble, defaultValue: true);
fullScreenGestureReverse = setting
@@ -895,15 +895,15 @@ class _PLVideoPlayerState extends State<PLVideoPlayer>
return Container();
}
if (defaultBtmProgressBehavior ==
BtmProgresBehavior.alwaysHide.code) {
BtmProgressBehavior.alwaysHide.code) {
return const SizedBox();
}
if (defaultBtmProgressBehavior ==
BtmProgresBehavior.onlyShowFullScreen.code &&
BtmProgressBehavior.onlyShowFullScreen.code &&
!_.isFullScreen.value) {
return const SizedBox();
} else if (defaultBtmProgressBehavior ==
BtmProgresBehavior.onlyHideFullScreen.code &&
BtmProgressBehavior.onlyHideFullScreen.code &&
_.isFullScreen.value) {
return const SizedBox();
}