如何为 iOS 启用 flutter 的倒置方向?
How to enable upside down orientation on flutter for iOS?
我正在尝试在 ios 的 flutter 应用程序上启用倒置肖像模式。应用程序中已启用所有方向:
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
]);
所有方向也通过 Xcode 在 ios 项目设置上启用:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
</array>
由于某些原因,iOS 倒置肖像模式无法正常工作。
非常感谢任何关于可能出错的想法
All iPadOS devices support the portraitUpsideDown orientation. It’s
best practice to enable it for the iPad idiom. iOS devices without a
Home button, such as iPhone 12, don’t support this orientation. You
should disable it entirely for the iPhone idiom.
您是否在合适的 ios 设备上测试此功能?
我正在尝试在 ios 的 flutter 应用程序上启用倒置肖像模式。应用程序中已启用所有方向:
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
]);
所有方向也通过 Xcode 在 ios 项目设置上启用:
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
</array>
由于某些原因,iOS 倒置肖像模式无法正常工作。 非常感谢任何关于可能出错的想法
All iPadOS devices support the portraitUpsideDown orientation. It’s best practice to enable it for the iPad idiom. iOS devices without a Home button, such as iPhone 12, don’t support this orientation. You should disable it entirely for the iPhone idiom.
您是否在合适的 ios 设备上测试此功能?