Disable landscape orientation

This commit is contained in:
Moe Poi ~ 2020-09-07 23:02:59 +07:00
parent 9cf3c9a5f8
commit b01b4f3770

View file

@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:neonime_app/components/splash.dart';
import 'package:flutter/services.dart';
void main() {
runApp(NeonimeApp());
@ -15,6 +16,10 @@ class _NeonimeAppState extends State<NeonimeApp> {
@override
Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);
return MaterialApp(
debugShowCheckedModeBanner: false,
home: SplashScreen()