bytepark / auto_orientation

A flutter plugin to programmatically change the orientation and rotate
MIT License
46 stars 45 forks source link

Fix compatibility with Android and make usage a little easier #1

Closed konstantintuev closed 5 years ago

konstantintuev commented 5 years ago

The android code overrides the orientation and completely ignores SystemChrome.setPreferredOrientations, I fixed it by adding methods for automatic rotation in landscape and portrait + full automatic orientation.
Now calling SystemChrome.setPreferredOrientations is no longer needed.

sfaujour commented 5 years ago

Hey thank you very much! I'll have a look at your commits, but the first look was good.

sfaujour commented 5 years ago

@konstantintuev Sorry that it took so long - but it seems that the current flutter pub publish is not stable and until i found out that i can also run pub publish which is another version, but stable it's now uploaded as 1.0.2.

Thank you very much for your support!