mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-02 00:36:20 +08:00
opt: show video sheet
Closes #761 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user