mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 播放器下方尺寸自动撑开
This commit is contained in:
@@ -323,6 +323,10 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
Obx(
|
Obx(
|
||||||
() {
|
() {
|
||||||
final double videoheight = Get.width * 9 / 16;
|
final double videoheight = Get.width * 9 / 16;
|
||||||
|
// final double videoheight =
|
||||||
|
// plPlayerController?.direction.value == 'vertical'
|
||||||
|
// ? Get.width
|
||||||
|
// : Get.width * 9 / 16;
|
||||||
final double videowidth = Get.width;
|
final double videowidth = Get.width;
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height: MediaQuery.of(context).orientation ==
|
height: MediaQuery.of(context).orientation ==
|
||||||
@@ -482,15 +486,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
SizedBox(
|
Expanded(
|
||||||
height: MediaQuery.of(context).orientation ==
|
|
||||||
Orientation.landscape ||
|
|
||||||
isFullScreen.value == true
|
|
||||||
? 0
|
|
||||||
: Get.height -
|
|
||||||
Get.width * 9 / 16 -
|
|
||||||
MediaQuery.of(context).padding.top,
|
|
||||||
width: MediaQuery.of(context).size.width,
|
|
||||||
child: ColoredBox(
|
child: ColoredBox(
|
||||||
key: Key(heroTag),
|
key: Key(heroTag),
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.background,
|
||||||
|
|||||||
Reference in New Issue
Block a user