Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-12 21:31:06 +08:00
parent b6279f702a
commit d996e0a7dd

View File

@@ -313,28 +313,30 @@ class _LiveRoomPageState extends State<LiveRoomPage>
}, },
), ),
), ),
PopScope( Obx(
canPop: plPlayerController.isFullScreen.value != true, () => PopScope(
onPopInvokedWithResult: (bool didPop, Object? result) { canPop: plPlayerController.isFullScreen.value != true,
if (plPlayerController.isFullScreen.value == true) { onPopInvokedWithResult: (bool didPop, Object? result) {
plPlayerController.triggerFullScreen(status: false); if (plPlayerController.isFullScreen.value == true) {
// if (MediaQuery.of(context).orientation == plPlayerController.triggerFullScreen(status: false);
// Orientation.landscape) { // if (MediaQuery.of(context).orientation ==
// verticalScreenForTwoSeconds(); // Orientation.landscape) {
// } // verticalScreenForTwoSeconds();
} // }
}, }
child: Listener(
onPointerDown: (_) {
_node.unfocus();
}, },
child: SizedBox( child: Listener(
width: Get.size.width, onPointerDown: (_) {
height: MediaQuery.of(context).orientation == _node.unfocus();
Orientation.landscape },
? Get.size.height child: SizedBox(
: Get.size.width * 9 / 16, width: Get.size.width,
child: videoPlayerPanel, height: MediaQuery.of(context).orientation ==
Orientation.landscape
? Get.size.height
: Get.size.width * 9 / 16,
child: videoPlayerPanel,
),
), ),
), ),
), ),