diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 2418583..5c24565 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -2,6 +2,8 @@ + io.flutter.embedded_views_preview + CADisableMinimumFrameDurationOnPhone CFBundleDevelopmentRegion diff --git a/lib/main.dart b/lib/main.dart index f08d9ab..92c8077 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_dotenv/flutter_dotenv.dart'; import 'package:intl/date_symbol_data_local.dart'; import 'package:earlips/main_app.dart'; +import 'package:flutter/services.dart'; void main() async { /* Open .env file */ @@ -12,6 +13,10 @@ void main() async { await initializeDateFormatting(); await EasyLocalization.ensureInitialized(); + await SystemChrome.setPreferredOrientations([ + DeviceOrientation.portraitUp, + DeviceOrientation.portraitDown, + ]); await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, );