auto_orientation: ^1.0.6 copied to clipboard
Set the device orientation programmatically for iOS and Android
This plugin was created to programmatically rotate on iOS and Android
Getting Started #
After importing the package you can use:
AutoOrientation.portraitDownMode(); (might not work) or
No need to call
it has been added to the library itself.
This has been done because before android auto-rotation wasn't working after setting rotation using the plugin.
We've used it for a VideoScaffold, to programmatically change to landscape and back to portrait if the scaffold is disposed.
Please have a look in the