flutter handle screen rotate 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(...);
}
}