mirror of
https://gitlab.com/moepoi/neonime-app.git
synced 2024-12-26 22:40:25 +01:00
Disable landscape orientation
This commit is contained in:
parent
9cf3c9a5f8
commit
b01b4f3770
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue