From c4a85365f703cb888750040a216d1334e9f80a67 Mon Sep 17 00:00:00 2001 From: HuiChan Seo <78739194+seochan99@users.noreply.github.com> Date: Sun, 18 Feb 2024 20:12:27 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8Feat:=20=EC=98=81=EC=83=81=20iframe?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Runner/Info.plist | 2 ++ lib/main.dart | 5 +++++ 2 files changed, 7 insertions(+) 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, );