Coder Social home page Coder Social logo

Comments (5)

sososdk avatar sososdk commented on June 24, 2024

forceOrientation just lets the screen go to the specified direction, without limiting the screen rotation.

I think you need OrientationPlugin.setPreferredOrientations([DeviceOrientation.portraitUp]).

from flutter_orientation.

marianoarga avatar marianoarga commented on June 24, 2024

@sososdk I have used that before testing with forceOrientation, same result.

from flutter_orientation.

sososdk avatar sososdk commented on June 24, 2024

@marianoarga Do you want to lock the screen orientation? And what is you platform?

from flutter_orientation.

marianoarga avatar marianoarga commented on June 24, 2024

@sososdk Yes, the goal is to have the orientation locked, but listen for orientation phisical change.
I have already locked the orientation with SystemChrome.setPreferredOrientations in previous app versions, but when I add the plugin that stops working.
Android is the platform.

Btw, I have achieve my goal migrating to native_device_orientation plugin, just for you to know and maybe check it out.

Thank you.

from flutter_orientation.

sososdk avatar sososdk commented on June 24, 2024

@marianoarga If you are interested you can check out example, I think it can achieve your purpose.

Thank you.

from flutter_orientation.

Related Issues (7)

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.