simple_pip_mode_flutter
simple_pip_mode_flutter copied to clipboard
Preferred Orientations
When we use PreferredOrientations
and go to fullscreen mode and then exit, the onPipExited
function does not work.
Go to fullscreen instructions:
await SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
And the next exit fullscreen instructions:
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
After this instructions, the onPipExited
function does not work!