You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that even we used the SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);, the orientation is still able to be changed in iOS devices. There's a workaround: restrict the config to only the portrait mode in the Info.plist file, but that makes we can't change the orientation while we need it (the video player page.)
This is insane. Requested to dive into the native flutter code.
Native code land point: the SystemMethodChannel for the setPreferredOrientations method call. (iOS)
Describe the bug
The display orientation seems can be changed to landscape mode in all places, which is not allowed by our policy.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
not allowed landscape mode, except the video player page.
The text was updated successfully, but these errors were encountered: