-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Description
Steps to Reproduce
According to iOS16 Release note:
"Attempting to set an orientation on UIDevice via setValue:forKey: isn’t supported and no longer works."
After update my system to iOS16 ( Version 16.0 ) if you try to change the screen orientation, you will get the following warning.
Expected results:
The screen orientation changes without any warnings.
Actual results:
BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)
Code example:
@override
void initState() {
SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]); // This line reproduces the bug
super.initState();
}
Flutter Doctor:
[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 ---- darwin-arm, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.71.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Metadata
Metadata
Assignees
Labels
Type
Projects
Status