diff --git a/lib/pages/live_room/view.dart b/lib/pages/live_room/view.dart index 200fa30c5..5a911d605 100644 --- a/lib/pages/live_room/view.dart +++ b/lib/pages/live_room/view.dart @@ -313,28 +313,30 @@ class _LiveRoomPageState extends State }, ), ), - PopScope( - canPop: plPlayerController.isFullScreen.value != true, - onPopInvokedWithResult: (bool didPop, Object? result) { - if (plPlayerController.isFullScreen.value == true) { - plPlayerController.triggerFullScreen(status: false); - // if (MediaQuery.of(context).orientation == - // Orientation.landscape) { - // verticalScreenForTwoSeconds(); - // } - } - }, - child: Listener( - onPointerDown: (_) { - _node.unfocus(); + Obx( + () => PopScope( + canPop: plPlayerController.isFullScreen.value != true, + onPopInvokedWithResult: (bool didPop, Object? result) { + if (plPlayerController.isFullScreen.value == true) { + plPlayerController.triggerFullScreen(status: false); + // if (MediaQuery.of(context).orientation == + // Orientation.landscape) { + // verticalScreenForTwoSeconds(); + // } + } }, - child: SizedBox( - width: Get.size.width, - height: MediaQuery.of(context).orientation == - Orientation.landscape - ? Get.size.height - : Get.size.width * 9 / 16, - child: videoPlayerPanel, + child: Listener( + onPointerDown: (_) { + _node.unfocus(); + }, + child: SizedBox( + width: Get.size.width, + height: MediaQuery.of(context).orientation == + Orientation.landscape + ? Get.size.height + : Get.size.width * 9 / 16, + child: videoPlayerPanel, + ), ), ), ),