2026-01-12 22:27:46 +09:00
|
|
|
/// fromis_9 Unofficial App
|
|
|
|
|
///
|
|
|
|
|
/// MVCS 아키텍처:
|
|
|
|
|
/// - Models: 데이터 모델
|
|
|
|
|
/// - Views: UI 화면
|
|
|
|
|
/// - Controllers: 비즈니스 로직 (Riverpod)
|
|
|
|
|
/// - Services: API 통신
|
|
|
|
|
library;
|
|
|
|
|
|
2026-01-12 22:14:53 +09:00
|
|
|
import 'package:flutter/material.dart';
|
2026-01-12 22:27:46 +09:00
|
|
|
import 'package:flutter/services.dart';
|
|
|
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
|
|
|
import 'core/router.dart';
|
|
|
|
|
import 'core/constants.dart';
|
2026-01-12 22:14:53 +09:00
|
|
|
|
|
|
|
|
void main() {
|
2026-01-12 22:27:46 +09:00
|
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
|
|
2026-01-12 22:35:40 +09:00
|
|
|
// 상태바 및 네비게이션 바 스타일 설정
|
2026-01-12 22:27:46 +09:00
|
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
|
|
|
const SystemUiOverlayStyle(
|
2026-01-12 22:35:40 +09:00
|
|
|
// 상태바
|
2026-01-12 22:27:46 +09:00
|
|
|
statusBarColor: Colors.transparent,
|
|
|
|
|
statusBarIconBrightness: Brightness.dark,
|
2026-01-12 22:35:40 +09:00
|
|
|
// 네비게이션 바 (소프트키)
|
|
|
|
|
systemNavigationBarColor: Colors.white,
|
|
|
|
|
systemNavigationBarIconBrightness: Brightness.dark,
|
2026-01-12 22:27:46 +09:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
runApp(
|
|
|
|
|
const ProviderScope(
|
|
|
|
|
child: Fromis9App(),
|
|
|
|
|
),
|
|
|
|
|
);
|
2026-01-12 22:14:53 +09:00
|
|
|
}
|
|
|
|
|
|
2026-01-12 22:27:46 +09:00
|
|
|
class Fromis9App extends StatelessWidget {
|
|
|
|
|
const Fromis9App({super.key});
|
2026-01-12 22:14:53 +09:00
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
2026-01-12 22:35:40 +09:00
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
|
|
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,
|
|
|
|
|
),
|
2026-01-12 22:27:46 +09:00
|
|
|
),
|
2026-01-12 22:35:40 +09:00
|
|
|
fontFamily: 'Pretendard',
|
2026-01-12 22:27:46 +09:00
|
|
|
),
|
2026-01-12 22:35:40 +09:00
|
|
|
routerConfig: appRouter,
|
2026-01-12 22:14:53 +09:00
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|