opt: show video sheet

Closes #761

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-27 14:00:05 +08:00
parent dc1cca0d4c
commit 3722ff1f33
3 changed files with 17 additions and 13 deletions

View File

@@ -423,7 +423,7 @@ class VideoDetailController extends GetxController
}
: null,
);
if (plPlayerController.isFullScreen.value) {
if (plPlayerController.isFullScreen.value || showVideoSheet) {
PageUtils.showVideoBottomSheet(
context,
child: plPlayerController.darkVideoPage && MyApp.darkThemeData != null
@@ -445,6 +445,11 @@ class VideoDetailController extends GetxController
}
}
bool horizontalScreen =
GStorage.setting.get(SettingBoxKey.horizontalScreen, defaultValue: false);
bool get showVideoSheet =>
!horizontalScreen && Get.context!.orientation == Orientation.landscape;
int? _lastPos;
double? _blockLimit;
List<Pair<SegmentType, SkipType>>? _blockSettings;
@@ -1356,7 +1361,7 @@ class VideoDetailController extends GetxController
),
);
}
if (plPlayerController.isFullScreen.value) {
if (plPlayerController.isFullScreen.value || showVideoSheet) {
PageUtils.showVideoBottomSheet(
context,
child: plPlayerController.darkVideoPage && MyApp.darkThemeData != null
@@ -1649,7 +1654,7 @@ class VideoDetailController extends GetxController
title =
Get.find<VideoIntroController>(tag: heroTag).videoDetail.value.title;
} catch (_) {}
if (plPlayerController.isFullScreen.value) {
if (plPlayerController.isFullScreen.value || showVideoSheet) {
PageUtils.showVideoBottomSheet(
context,
child: plPlayerController.darkVideoPage && MyApp.darkThemeData != null