From bf6d4567a3e473b0aba140cbe2af220c057bc830 Mon Sep 17 00:00:00 2001 From: caadiq Date: Mon, 12 Jan 2026 22:35:40 +0900 Subject: [PATCH] =?UTF-8?q?Flutter=20=EC=95=B1:=20=EC=8B=9C=EC=8A=A4?= =?UTF-8?q?=ED=85=9C=20=EB=84=A4=EB=B9=84=EA=B2=8C=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EB=B0=94=20=ED=9D=B0=EC=83=89=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/src/main/res/values-night/styles.xml | 2 + .../app/src/main/res/values/styles.xml | 2 + app/lib/main.dart | 63 +++++++++++-------- 3 files changed, 42 insertions(+), 25 deletions(-) diff --git a/app/android/app/src/main/res/values-night/styles.xml b/app/android/app/src/main/res/values-night/styles.xml index 06952be..f83f74a 100644 --- a/app/android/app/src/main/res/values-night/styles.xml +++ b/app/android/app/src/main/res/values-night/styles.xml @@ -5,6 +5,7 @@ @drawable/launch_background + @android:color/white diff --git a/app/android/app/src/main/res/values/styles.xml b/app/android/app/src/main/res/values/styles.xml index cb1ef88..dbe69c2 100644 --- a/app/android/app/src/main/res/values/styles.xml +++ b/app/android/app/src/main/res/values/styles.xml @@ -5,6 +5,7 @@ @drawable/launch_background + @android:color/white diff --git a/app/lib/main.dart b/app/lib/main.dart index 605bc80..321c50c 100644 --- a/app/lib/main.dart +++ b/app/lib/main.dart @@ -16,11 +16,15 @@ import 'core/constants.dart'; void main() { WidgetsFlutterBinding.ensureInitialized(); - // 상태바 스타일 설정 + // 상태바 및 네비게이션 바 스타일 설정 SystemChrome.setSystemUIOverlayStyle( const SystemUiOverlayStyle( + // 상태바 statusBarColor: Colors.transparent, statusBarIconBrightness: Brightness.dark, + // 네비게이션 바 (소프트키) + systemNavigationBarColor: Colors.white, + systemNavigationBarIconBrightness: Brightness.dark, ), ); @@ -36,31 +40,40 @@ class Fromis9App extends StatelessWidget { @override Widget build(BuildContext context) { - return MaterialApp.router( - title: 'fromis_9', - debugShowCheckedModeBanner: false, - theme: ThemeData( - useMaterial3: true, - colorScheme: ColorScheme.fromSeed( - seedColor: AppColors.primary, - brightness: Brightness.light, - ), - scaffoldBackgroundColor: AppColors.background, - appBarTheme: const AppBarTheme( - backgroundColor: Colors.white, - foregroundColor: AppColors.textPrimary, - elevation: 0, - scrolledUnderElevation: 1, - centerTitle: true, - titleTextStyle: TextStyle( - color: AppColors.primary, - fontSize: 20, - fontWeight: FontWeight.bold, - ), - ), - fontFamily: 'Pretendard', + return AnnotatedRegion( + value: const SystemUiOverlayStyle( + statusBarColor: Colors.transparent, + statusBarIconBrightness: Brightness.dark, + systemNavigationBarColor: Colors.white, + systemNavigationBarIconBrightness: Brightness.dark, + systemNavigationBarDividerColor: Colors.transparent, + ), + child: MaterialApp.router( + title: 'fromis_9', + debugShowCheckedModeBanner: false, + theme: ThemeData( + useMaterial3: true, + colorScheme: ColorScheme.fromSeed( + seedColor: AppColors.primary, + brightness: Brightness.light, + ), + scaffoldBackgroundColor: AppColors.background, + appBarTheme: const AppBarTheme( + backgroundColor: Colors.white, + foregroundColor: AppColors.textPrimary, + elevation: 0, + scrolledUnderElevation: 1, + centerTitle: true, + titleTextStyle: TextStyle( + color: AppColors.primary, + fontSize: 20, + fontWeight: FontWeight.bold, + ), + ), + fontFamily: 'Pretendard', + ), + routerConfig: appRouter, ), - routerConfig: appRouter, ); } }