I am trying to enable upside-down portrait mode on flutter app for ios. All orienations are enabled in the app:
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
]);
All the orientation are also enabled on ios project settings through Xcode:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
</array>
For some reason on iOS upside-down portrait mode is not working. Any ideas on what might be wrong is highly appreciated