Set the orientation of the whole app to only be portrait

This commit is contained in:
Mariano Uvalle 2019-04-06 23:27:59 -06:00
parent 98edfee91e
commit 21cc8697b0

View file

@ -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());
}