Comments (4)
FYI team-ios: I'm already working on an issue that relates to orientation changes for Android - #144307. So, I can investigate this area of code as it relates to Android. However, there seems to be a cross-platform issue with SystemChrome.setPreferredOrientations
. As noted above, there have also been a couple other issues reported in the past for iOS. In response to #147460 (comment), we may want to clarify the expected iOS behavior in regards to Xcode.
from flutter.
Thanks for the report @Tom3652
Is this specific to iOS or Android ?
Also, please check below issues and see if they help in your case or not.
from flutter.
Since you showed me older issues, i have tested them and i have also tested everything using the latest flutter version 3.19.6
.
The below tests are made using my sample code in the issue.
- IOS :
- Every rotation (or combination of rotation) is working fine except
portraitDown
with the error :Failed to change device orientation: Error Domain=UISceneErrorDomain Code=101 "None of the requested orientations are supported by the view controller. Requested: portraitUpsideDown; Supported: landscapeRight" UserInfo={NSLocalizedDescription=None of the requested orientations are supported by the view controller. Requested: portraitUpsideDown; Supported: landscapeRight}
Note : Rotations are blocked if you uncheck the rotation directly in Xcode (in that case, SystemChrome
can't do anything)
- Android :
- Use
portraitUp
&&landscapeRight
orportraitUp
&&landscapeLeft
, onlyportraitUp
is working - Use
portraitUp
&&landscapeRight
&&landscapeLeft
it works fine - Use
landscapeRight
||landscapeLeft
alone, it starts in the correct orientations but doesn't rotate to the other
This follows my initial issue comment.
For now it's all the tests i have made, i have not tried portraitDown
on Android but will update the comment once i do it of course
from flutter.
The solution to this issue will warrant additional discussion (see #148136).
So, I am unassigning myself for now.
from flutter.
Related Issues (20)
- Improve Flutter's Android device orientation performance
- [camera_android_camerax] Ensure `startVideoCapturing` and `stopVideoRecording` return video with expected duration
- [Impeller] AHB swapchain has synchronization issue on present.
- [two_dimensional_scrollables] childPositionGetter in Tableview.builder
- White line below TabBar HOT 1
- Flutter should use a separate package for clang-format
- Close the search by pressing escape
- Autofill update/save password prompt inconsistent behaviour for IOS when multiple textfields on screen
- mac-8 lost external connection phone device.
- [tool_crash] ProcessException: Found candidates, but lacked sufficient permissions to execute "/storage/emulated/0/flutter/app/android/gradlew". Command: /storage/emulated/0/flutter/app/android/gradlew, OS error code: 0
- Error(Warning) in hiding slider labels HOT 1
- Incorrect Command in Documentation for Installing Flutter SDK on macOS
- Add alignment property to SnackBar HOT 1
- The rendering layer relies on the PaintingBinding but RendererBinding doesn't require it
- IconButton Semantics Label HOT 1
- %5Btool_crash%5D RPCError HOT 1
- [go_router] the page opened incorrectly HOT 4
- ValueNotifier should have an addValueListener method.
- When building from XCode, webview_flutter throws a `Module 'webview_flutter_wkwebview' not found` HOT 3
- RelativeRect.fromLTRB() bottom value has no effect HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.