simple_pip_mode_flutter icon indicating copy to clipboard operation
simple_pip_mode_flutter copied to clipboard

Preferred Orientations

Open mbfakourii opened this issue 6 months ago • 0 comments

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!

mbfakourii avatar Aug 18 '24 07:08 mbfakourii