void main() { SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.prtraitDown ]); runApp(MyApp()); }