From e85ccc742876d23d9627a93011bc5f2e1fcdb8c5 Mon Sep 17 00:00:00 2001 From: HCha Date: Wed, 8 Apr 2026 12:22:33 +0000 Subject: [PATCH] feat: return horizontal | isPortrait --- lib/plugin/pl_player/controller.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/plugin/pl_player/controller.dart b/lib/plugin/pl_player/controller.dart index d120d09eb..b09325df1 100644 --- a/lib/plugin/pl_player/controller.dart +++ b/lib/plugin/pl_player/controller.dart @@ -1746,7 +1746,7 @@ class PlPlayerController with BlockConfigMixin { }); } - void onPopInvokedWithResult(bool didPop, Object? result, bool isPortrait) { + void onPopInvokedWithResult(bool didPop, Object? result) { if (didPop) { if (Platform.isAndroid) { _disableAutoEnterPipIfNeeded(); @@ -1765,6 +1765,8 @@ class PlPlayerController with BlockConfigMixin { triggerFullScreen(status: false); return; } - Get.back(); + if (horizontalScreen || isPortrait) { + Get.back(); + } } }