From ae11949144d0e36c435b7e3721c7c1bd49442118 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 11 Jun 2025 17:03:22 +0200 Subject: [PATCH] Changed orientation lock --- lib/main.dart | 3 +++ pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index edd7d3c..9cc3648 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,9 +4,12 @@ import 'package:cabo_counter/utility/custom_theme.dart'; import 'package:cabo_counter/utility/globals.dart'; import 'package:cabo_counter/views/tab_view.dart'; import 'package:flutter/cupertino.dart'; +import 'package:flutter/services.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); + await SystemChrome.setPreferredOrientations( + [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]); await ConfigService.initConfig(); Globals.pointLimit = await ConfigService.getPointLimit(); Globals.caboPenalty = await ConfigService.getCaboPenalty(); diff --git a/pubspec.yaml b/pubspec.yaml index 9143b97..32462b5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: cabo_counter description: "Mobile app for the card game Cabo" publish_to: 'none' -version: 0.2.1+178 +version: 0.2.1+182 environment: sdk: ^3.5.4