Comments (5)
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.
@sososdk I have used that before testing with forceOrientation, same result.
from flutter_orientation.
@marianoarga Do you want to lock the screen orientation? And what is you platform?
from flutter_orientation.
@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.
@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)
- [Feature request] Need options such as [sensitivity] or [threshold] HOT 1
- How to lock the screen in IOS pad? HOT 3
- iOS always shows DeviceOrientation.landscapeLeft HOT 3
- Null safety support HOT 2
- Function forceOrientation not work in IOS 16
- on ios, OrientationPlugin.forceOrientation(DeviceOrientation.landscapeRight) not work
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_orientation.