Changed orientation lock
This commit is contained in:
@@ -4,9 +4,12 @@ import 'package:cabo_counter/utility/custom_theme.dart';
|
|||||||
import 'package:cabo_counter/utility/globals.dart';
|
import 'package:cabo_counter/utility/globals.dart';
|
||||||
import 'package:cabo_counter/views/tab_view.dart';
|
import 'package:cabo_counter/views/tab_view.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
await SystemChrome.setPreferredOrientations(
|
||||||
|
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown]);
|
||||||
await ConfigService.initConfig();
|
await ConfigService.initConfig();
|
||||||
Globals.pointLimit = await ConfigService.getPointLimit();
|
Globals.pointLimit = await ConfigService.getPointLimit();
|
||||||
Globals.caboPenalty = await ConfigService.getCaboPenalty();
|
Globals.caboPenalty = await ConfigService.getCaboPenalty();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ name: cabo_counter
|
|||||||
description: "Mobile app for the card game Cabo"
|
description: "Mobile app for the card game Cabo"
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
|
|
||||||
version: 0.2.1+178
|
version: 0.2.1+182
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.5.4
|
sdk: ^3.5.4
|
||||||
|
|||||||
Reference in New Issue
Block a user