Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] NativeDeviceOrientation.landscapeRight is DeviceOrientation.landscapeLeft and vice versa #70

Open
kaciula opened this issue Mar 8, 2024 · 0 comments

Comments

@kaciula
Copy link

kaciula commented Mar 8, 2024

If I get the current orientation with await NativeDeviceOrientationCommunicator().orientation() and then I lock this orientation with SystemChrome.setPreferredOrientations(<DeviceOrientation>[orientation]) the screen reverses itself. If current orientation was landscapeRight, it becomes landscapeLeft and vice versa. This would mean to me that the plugin wrongly reports the landscape orientations (left vs right). I've tested on iPhone and iPad Mini to confirm this. Not sure if it behaves the same for all iOS devices.

On my Android devices, it behaves as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant