Skip to content

Commit 445d753

Browse files
author
liuchuancong
committed
修正UI显示
1 parent 6585aa4 commit 445d753

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/modules/live_play/live_play_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ class LivePlayPage extends GetView<LivePlayController> {
2323
WakelockPlus.toggle(enable: settings.enableScreenKeepOn.value);
2424
}
2525
return Obx(() {
26+
if (SwitchableGlobalPlayer().isInPip.value) {
27+
return SwitchableGlobalPlayer().buildPiPOverlay();
28+
}
2629
if (controller.screenMode.value == VideoMode.normal) {
2730
return buildNormalPlayerView(context);
2831
} else if (controller.screenMode.value == VideoMode.widescreen) {
@@ -33,9 +36,6 @@ class LivePlayPage extends GetView<LivePlayController> {
3336
}
3437

3538
Widget buildNormalPlayerView(BuildContext context) {
36-
if (SwitchableGlobalPlayer().isInPip.value) {
37-
return SwitchableGlobalPlayer().buildPiPOverlay();
38-
}
3939
return Scaffold(
4040
appBar: AppBar(
4141
title: Row(

lib/player/switchable_global_player.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class SwitchableGlobalPlayer {
361361
children: [
362362
Container(color: Colors.black),
363363
_currentPlayer?.getVideoWidget(settings.videoFitIndex.value, child) ?? const SizedBox(),
364-
if (!isFloatContent) child ?? const SizedBox(),
364+
if (!isFloatContent && !isInPip.value) child ?? const SizedBox(),
365365
],
366366
),
367367
resizeToAvoidBottomInset: true,

0 commit comments

Comments
 (0)