feat(theme): 앱 테마 레트로 스타일 확장
- 라이트/다크 테마 모두 레트로 색상 적용 - 다이얼로그, 바텀시트 테마 추가 - 슬라이더, 스위치 테마 커스터마이징 - 입력 필드 테마 추가
This commit is contained in:
199
lib/src/app.dart
199
lib/src/app.dart
@@ -381,23 +381,73 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 스플래시 화면 (세이브 파일 확인 중)
|
/// 스플래시 화면 (세이브 파일 확인 중) - 레트로 스타일
|
||||||
class _SplashScreen extends StatelessWidget {
|
class _SplashScreen extends StatelessWidget {
|
||||||
const _SplashScreen();
|
const _SplashScreen();
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return const Scaffold(
|
return Scaffold(
|
||||||
|
backgroundColor: RetroColors.deepBrown,
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
// 타이틀 로고
|
||||||
'ASCII NEVER DIE',
|
Container(
|
||||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: RetroColors.panelBg,
|
||||||
|
border: Border.all(color: RetroColors.gold, width: 3),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
// 아이콘
|
||||||
|
const Icon(
|
||||||
|
Icons.auto_awesome,
|
||||||
|
size: 32,
|
||||||
|
color: RetroColors.gold,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 12),
|
||||||
|
// 타이틀
|
||||||
|
const Text(
|
||||||
|
'ASCII',
|
||||||
|
style: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 20,
|
||||||
|
color: RetroColors.gold,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: RetroColors.goldDark,
|
||||||
|
offset: Offset(2, 2),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 4),
|
||||||
|
const Text(
|
||||||
|
'NEVER DIE',
|
||||||
|
style: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 14,
|
||||||
|
color: RetroColors.cream,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: RetroColors.brown,
|
||||||
|
offset: Offset(1, 1),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 32),
|
||||||
|
// 레트로 로딩 바
|
||||||
|
SizedBox(
|
||||||
|
width: 160,
|
||||||
|
child: _RetroLoadingBar(),
|
||||||
),
|
),
|
||||||
SizedBox(height: 16),
|
|
||||||
CircularProgressIndicator(),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -405,7 +455,7 @@ class _SplashScreen extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 자동 로드 화면 (세이브 파일 자동 로드)
|
/// 자동 로드 화면 (세이브 파일 자동 로드) - 레트로 스타일
|
||||||
class _AutoLoadScreen extends StatefulWidget {
|
class _AutoLoadScreen extends StatefulWidget {
|
||||||
const _AutoLoadScreen({
|
const _AutoLoadScreen({
|
||||||
required this.controller,
|
required this.controller,
|
||||||
@@ -460,21 +510,142 @@ class _AutoLoadScreenState extends State<_AutoLoadScreen> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
|
backgroundColor: RetroColors.deepBrown,
|
||||||
body: Center(
|
body: Center(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
const Text(
|
// 타이틀 로고
|
||||||
'ASCII NEVER DIE',
|
Container(
|
||||||
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: RetroColors.panelBg,
|
||||||
|
border: Border.all(color: RetroColors.gold, width: 3),
|
||||||
|
),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
// 아이콘
|
||||||
|
const Icon(
|
||||||
|
Icons.auto_awesome,
|
||||||
|
size: 32,
|
||||||
|
color: RetroColors.gold,
|
||||||
|
),
|
||||||
|
const SizedBox(height: 12),
|
||||||
|
// 타이틀
|
||||||
|
const Text(
|
||||||
|
'ASCII',
|
||||||
|
style: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 20,
|
||||||
|
color: RetroColors.gold,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: RetroColors.goldDark,
|
||||||
|
offset: Offset(2, 2),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 4),
|
||||||
|
const Text(
|
||||||
|
'NEVER DIE',
|
||||||
|
style: TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 14,
|
||||||
|
color: RetroColors.cream,
|
||||||
|
shadows: [
|
||||||
|
Shadow(
|
||||||
|
color: RetroColors.brown,
|
||||||
|
offset: Offset(1, 1),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 32),
|
||||||
|
// 레트로 로딩 바
|
||||||
|
SizedBox(
|
||||||
|
width: 160,
|
||||||
|
child: _RetroLoadingBar(),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
const CircularProgressIndicator(),
|
// 로딩 텍스트
|
||||||
const SizedBox(height: 16),
|
Text(
|
||||||
Text(game_l10n.uiLoading),
|
game_l10n.uiLoading,
|
||||||
|
style: const TextStyle(
|
||||||
|
fontFamily: 'PressStart2P',
|
||||||
|
fontSize: 8,
|
||||||
|
color: RetroColors.textDisabled,
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 레트로 스타일 로딩 바 (애니메이션)
|
||||||
|
class _RetroLoadingBar extends StatefulWidget {
|
||||||
|
@override
|
||||||
|
State<_RetroLoadingBar> createState() => _RetroLoadingBarState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _RetroLoadingBarState extends State<_RetroLoadingBar>
|
||||||
|
with SingleTickerProviderStateMixin {
|
||||||
|
late AnimationController _controller;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
super.initState();
|
||||||
|
_controller = AnimationController(
|
||||||
|
duration: const Duration(milliseconds: 1500),
|
||||||
|
vsync: this,
|
||||||
|
)..repeat();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
_controller.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
const segmentCount = 10;
|
||||||
|
|
||||||
|
return AnimatedBuilder(
|
||||||
|
animation: _controller,
|
||||||
|
builder: (context, child) {
|
||||||
|
// 웨이브 효과: 각 세그먼트가 순차적으로 켜지고 꺼짐
|
||||||
|
return Container(
|
||||||
|
height: 16,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: RetroColors.panelBg,
|
||||||
|
border: Border.all(color: RetroColors.panelBorderOuter, width: 2),
|
||||||
|
),
|
||||||
|
child: Row(
|
||||||
|
children: List.generate(segmentCount, (index) {
|
||||||
|
// 웨이브 패턴 계산
|
||||||
|
final progress = _controller.value * segmentCount;
|
||||||
|
final distance = (index - progress).abs();
|
||||||
|
final isLit = distance < 2 || (segmentCount - distance) < 2;
|
||||||
|
final opacity = isLit ? 1.0 : 0.2;
|
||||||
|
|
||||||
|
return Expanded(
|
||||||
|
child: Container(
|
||||||
|
margin: const EdgeInsets.all(1),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: RetroColors.gold.withValues(alpha: opacity),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
},
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user