Set the orientation of the whole app to only be portrait
This commit is contained in:
parent
98edfee91e
commit
21cc8697b0
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ import 'package:flutter/services.dart';
|
||||||
|
|
||||||
import 'src/App.dart';
|
import 'src/App.dart';
|
||||||
|
|
||||||
main() {
|
main() async {
|
||||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);
|
||||||
|
await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
||||||
runApp(App());
|
runApp(App());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue