feat: return horizontal | isPortrait

This commit is contained in:
HCha
2026-04-08 12:22:33 +00:00
parent a99d2f9633
commit e85ccc7428

View File

@@ -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 (didPop) {
if (Platform.isAndroid) { if (Platform.isAndroid) {
_disableAutoEnterPipIfNeeded(); _disableAutoEnterPipIfNeeded();
@@ -1765,6 +1765,8 @@ class PlPlayerController with BlockConfigMixin {
triggerFullScreen(status: false); triggerFullScreen(status: false);
return; return;
} }
Get.back(); if (horizontalScreen || isPortrait) {
Get.back();
}
} }
} }