Skip to content

Commit

Permalink
restricting the landscape mode (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
superiorsd10 authored Sep 24, 2023
1 parent 93aad14 commit 50d72d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/services.dart';

import 'package:get/get.dart';
import 'package:ultimate_alarm_clock/app/utils/constants.dart';
Expand All @@ -9,6 +10,12 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();

await Firebase.initializeApp();

SystemChrome.setPreferredOrientations([
DeviceOrientation.portraitUp,
DeviceOrientation.portraitDown,
]);

runApp(
GetMaterialApp(
theme: kThemeData,
Expand Down

0 comments on commit 50d72d1

Please sign in to comment.