turn off screen rotation flutter app 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(...);
}
}