Skip to content

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

@kaciula

Description

@kaciula

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions