Aaron Halvorsen
Aaron Halvorsen

Reputation: 2680

How to check if device orientation is landscape left vs right in flutter?

I'm aware of the ability to detect landscape vs portrait, but I'd like to vary how I'm using the safe area on devices with notch features (iPhone X) based on if the notch is on the left when in landscape left or on the right when in landscape right. In swift you can do this: UIDevice.currentDevice().orientation == UIDeviceOrientation.LandscapeRight

Upvotes: 5

Views: 2325

Answers (1)

ibrahimkarahan
ibrahimkarahan

Reputation: 3015

Flutter don't give us left or right yet but this library can help you.

Upvotes: 4

Related Questions