From 21cc8697b02d41f55c9b7708a1ddecddb21ee777 Mon Sep 17 00:00:00 2001 From: AYM1607 Date: Sat, 6 Apr 2019 23:27:59 -0600 Subject: [PATCH] Set the orientation of the whole app to only be portrait --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 2e762dc..5d06445 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -3,7 +3,8 @@ import 'package:flutter/services.dart'; import 'src/App.dart'; -main() { +main() async { SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light); + await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); runApp(App()); }