auto rotation on the screen in flutter code example
Example: how to stop screen rotation in flutter
class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
return new MaterialApp(...);
}
}