diff --git a/lib/pages/video/detail/widgets/header_control.dart b/lib/pages/video/detail/widgets/header_control.dart index 22233ed8..f1382837 100644 --- a/lib/pages/video/detail/widgets/header_control.dart +++ b/lib/pages/video/detail/widgets/header_control.dart @@ -123,6 +123,8 @@ class _HeaderControlState extends State { showModalBottomSheet( elevation: 0, context: context, + isScrollControlled: true, + clipBehavior: Clip.hardEdge, backgroundColor: Colors.transparent, builder: (context) { return Container( @@ -504,8 +506,6 @@ class _HeaderControlState extends State { ), ); }, - clipBehavior: Clip.hardEdge, - isScrollControlled: true, ); } @@ -1051,13 +1051,14 @@ class _HeaderControlState extends State { await showModalBottomSheet( context: context, elevation: 0, + isScrollControlled: true, backgroundColor: Colors.transparent, builder: (BuildContext context) { return StatefulBuilder( builder: (BuildContext context, StateSetter setState) { return Container( width: double.infinity, - height: 600, + height: Get.height / 2, clipBehavior: Clip.hardEdge, decoration: BoxDecoration( color: Theme.of(context).colorScheme.surface, diff --git a/lib/plugin/pl_player/view.dart b/lib/plugin/pl_player/view.dart index 98ac5888..c0a0d911 100644 --- a/lib/plugin/pl_player/view.dart +++ b/lib/plugin/pl_player/view.dart @@ -239,10 +239,12 @@ class _PLVideoPlayerState extends State videoIntroController!.videoDetail.value.pages!.length > 1; bool isBangumi = bangumiIntroController?.loadingState.value is Success; bool anySeason = isSeason || isPage || isBangumi; + double widgetWidth = + isFullScreen && context.orientation == Orientation.landscape ? 42 : 35; Map videoProgressWidgets = { /// 上一集 BottomControlType.pre: Container( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, alignment: Alignment.center, child: ComBtn( @@ -274,7 +276,7 @@ class _PLVideoPlayerState extends State /// 下一集 BottomControlType.next: Container( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, alignment: Alignment.center, child: ComBtn( @@ -341,7 +343,7 @@ class _PLVideoPlayerState extends State () => plPlayerController.viewPointList.isEmpty ? const SizedBox.shrink() : Container( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, alignment: Alignment.center, child: ComBtn( @@ -361,7 +363,7 @@ class _PLVideoPlayerState extends State /// 选集 BottomControlType.episode: Container( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, alignment: Alignment.center, child: ComBtn( @@ -450,7 +452,7 @@ class _PLVideoPlayerState extends State () => plPlayerController.vttSubtitles.isEmpty ? const SizedBox.shrink() : SizedBox( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, child: PopupMenuButton( onSelected: (int value) { @@ -523,7 +525,7 @@ class _PLVideoPlayerState extends State /// 全屏 BottomControlType.fullscreen: SizedBox( - width: isFullScreen ? 42 : 35, + width: widgetWidth, height: 30, child: Obx(() => ComBtn( icon: Icon(