From adb2cecccbd52c682026271ad13d2778ec2728c5 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Sat, 17 Aug 2024 14:45:16 +0200 Subject: [PATCH] feat: lock screen orientation to up --- lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index e000a84..0836348 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:get/get.dart'; import 'package:lottis_birthday_escaperoom_app/barcode_scanner_window.dart'; import 'package:lottis_birthday_escaperoom_app/controller/gamecontroller.dart'; @@ -7,6 +8,7 @@ import 'package:lottis_birthday_escaperoom_app/mobile_scanner_overlay.dart'; import 'package:lottis_birthday_escaperoom_app/screens/marker.dart'; void main() { + SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]); runApp(const MyApp()); }