- 홈 화면에 웹과 동일한 framer-motion 스타일 애니메이션 적용 - 멤버 화면 카드 스와이프 디자인으로 재구현 - 인스타그램 딥링크 지원 (url_launcher, AndroidManifest queries) - flutter_svg 추가로 SVG 아이콘 동적 strokeWidth 지원 - 바텀 네비게이션 아이콘 strokeWidth 웹과 동일하게 조정 - 멤버 화면 툴바 그림자 제거 및 인디케이터 그림자 최적화 - 탭 전환 시 애니메이션 재생 기능 추가 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
80 lines
2.3 KiB
Dart
80 lines
2.3 KiB
Dart
/// fromis_9 Unofficial App
|
|
///
|
|
/// MVCS 아키텍처:
|
|
/// - Models: 데이터 모델
|
|
/// - Views: UI 화면
|
|
/// - Controllers: 비즈니스 로직 (Riverpod)
|
|
/// - Services: API 통신
|
|
library;
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'core/router.dart';
|
|
import 'core/constants.dart';
|
|
|
|
void main() {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
|
|
// 상태바 및 네비게이션 바 스타일 설정
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
const SystemUiOverlayStyle(
|
|
// 상태바
|
|
statusBarColor: Colors.transparent,
|
|
statusBarIconBrightness: Brightness.dark,
|
|
// 네비게이션 바 (소프트키)
|
|
systemNavigationBarColor: Colors.white,
|
|
systemNavigationBarIconBrightness: Brightness.dark,
|
|
),
|
|
);
|
|
|
|
runApp(
|
|
const ProviderScope(
|
|
child: Fromis9App(),
|
|
),
|
|
);
|
|
}
|
|
|
|
class Fromis9App extends StatelessWidget {
|
|
const Fromis9App({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
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(
|
|
fontFamily: 'Pretendard',
|
|
color: AppColors.primary,
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
fontFamily: 'Pretendard',
|
|
),
|
|
routerConfig: appRouter,
|
|
),
|
|
);
|
|
}
|
|
}
|