mirror of
https://gitlab.com/moepoi/neonime-app.git
synced 2024-12-28 07:20:13 +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:flutter/material.dart';
|
||||||
import 'package:neonime_app/components/splash.dart';
|
import 'package:neonime_app/components/splash.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runApp(NeonimeApp());
|
runApp(NeonimeApp());
|
||||||
|
@ -15,6 +16,10 @@ class _NeonimeAppState extends State<NeonimeApp> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
SystemChrome.setPreferredOrientations([
|
||||||
|
DeviceOrientation.portraitUp,
|
||||||
|
DeviceOrientation.portraitDown,
|
||||||
|
]);
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
debugShowCheckedModeBanner: false,
|
debugShowCheckedModeBanner: false,
|
||||||
home: SplashScreen()
|
home: SplashScreen()
|
||||||
|
|
Loading…
Reference in a new issue