Coder Social home page Coder Social logo

Comments (4)

mossmana avatar mossmana commented on May 18, 2024 2

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.

darshankawar avatar darshankawar commented on May 18, 2024

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.

#34230
#73651

from flutter.

Tom3652 avatar Tom3652 commented on May 18, 2024

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.

  1. 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)
Capture d’écran 2024-04-29 à 16 57 02

  1. Android :
  • Use portraitUp && landscapeRight or portraitUp && landscapeLeft, only portraitUp 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.

mossmana avatar mossmana commented on May 18, 2024

The solution to this issue will warrant additional discussion (see #148136).

So, I am unassigning myself for now.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.