mirror of
https://github.com/jaysavsani07/math-metrix.git
synced 2025-08-06 15:11:40 +08:00
disable Landscape mode
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
import 'package:get_it/get_it.dart';
|
import 'package:get_it/get_it.dart';
|
||||||
import 'package:mathgame/src/provider/dashboardViewModel.dart';
|
import 'package:mathgame/src/provider/dashboardViewModel.dart';
|
||||||
import 'package:mathgame/src/resources/dialog_service.dart';
|
import 'package:mathgame/src/resources/dialog_service.dart';
|
||||||
@ -24,8 +25,15 @@ class MyApp extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
// SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);
|
||||||
|
SystemChrome.setPreferredOrientations([
|
||||||
|
DeviceOrientation.portraitUp,
|
||||||
|
DeviceOrientation.portraitDown,
|
||||||
|
]);
|
||||||
|
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Math Game',
|
title: 'Math Matrix',
|
||||||
|
debugShowCheckedModeBanner: false,
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
backgroundColor: Color(0xFFaa0000),
|
backgroundColor: Color(0xFFaa0000),
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
|
Reference in New Issue
Block a user