opt video bottomsheet

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-03 23:10:41 +08:00
parent 508384c016
commit af1cd30ed7
7 changed files with 18 additions and 34 deletions

View File

@@ -533,7 +533,6 @@ class VideoDetailController extends GetxController
child: plPlayerController.darkVideoPage
? Theme(data: ThemeUtils.darkTheme, child: panel())
: panel(),
isFullScreen: () => plPlayerController.isFullScreen.value,
);
} else {
childKey.currentState?.showBottomSheet(
@@ -1049,7 +1048,6 @@ class VideoDetailController extends GetxController
videoDetailController: this,
plPlayerController: plPlayerController,
),
isFullScreen: () => plPlayerController.isFullScreen.value,
);
} else {
childKey.currentState?.showBottomSheet(
@@ -1392,7 +1390,6 @@ class VideoDetailController extends GetxController
isStein: graphVersion != null,
title: title,
),
isFullScreen: () => plPlayerController.isFullScreen.value,
);
} else {
childKey.currentState?.showBottomSheet(

View File

@@ -1998,7 +1998,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
if (isFullScreen || videoDetailController.showVideoSheet) {
PageUtils.showVideoBottomSheet(
context,
isFullScreen: () => isFullScreen,
child: videoDetailController.plPlayerController.darkVideoPage
? Theme(
data: themeData,
@@ -2078,7 +2077,6 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
if (isFullScreen || videoDetailController.showVideoSheet) {
PageUtils.showVideoBottomSheet(
context,
isFullScreen: () => isFullScreen,
child: videoDetailController.plPlayerController.darkVideoPage
? Theme(
data: themeData,

View File

@@ -1247,7 +1247,7 @@ class HeaderControlState extends State<HeaderControl>
/// 字幕设置
void showSetSubtitle() {
showBottomSheet(
padding: isFullScreen ? 70 : null,
padding: () => isFullScreen ? const .only(bottom: 70) : .zero,
(context, setState) {
final theme = Theme.of(context);

View File

@@ -14,12 +14,11 @@ mixin HeaderMixin<T extends StatefulWidget> on State<T> {
Future<void>? showBottomSheet(
StatefulWidgetBuilder builder, {
double? padding,
ValueGetter<EdgeInsets>? padding,
}) {
return PageUtils.showVideoBottomSheet(
context,
maxWidth: 512,
isFullScreen: () => isFullScreen,
padding: padding,
child: StatefulBuilder(
builder: (context, setState) => plPlayerController.darkVideoPage