refactor(ui): 기타 화면 정리

- FrontScreen, HallOfFameScreen 개선
- NewCharacterScreen, SettingsScreen 정리
- App 초기화 로직 정리
This commit is contained in:
JiWoong Sul
2026-01-12 16:17:25 +09:00
parent cbbbbba1a5
commit 448f500ca0
7 changed files with 287 additions and 131 deletions

View File

@@ -122,10 +122,7 @@ class _SettingsScreenState extends State<SettingsScreen> {
children: [
Icon(Icons.settings, color: theme.colorScheme.primary),
const SizedBox(width: 8),
Text(
game_l10n.uiSettings,
style: theme.textTheme.titleLarge,
),
Text(game_l10n.uiSettings, style: theme.textTheme.titleLarge),
const Spacer(),
IconButton(
icon: const Icon(Icons.close),
@@ -196,9 +193,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
padding: const EdgeInsets.only(bottom: 8),
child: Text(
title,
style: Theme.of(context).textTheme.titleMedium?.copyWith(
fontWeight: FontWeight.bold,
),
style: Theme.of(
context,
).textTheme.titleMedium?.copyWith(fontWeight: FontWeight.bold),
),
);
}
@@ -292,7 +289,10 @@ class _SettingsScreenState extends State<SettingsScreen> {
leading: Text(lang.$3, style: const TextStyle(fontSize: 24)),
title: Text(lang.$2),
trailing: isSelected
? Icon(Icons.check, color: Theme.of(context).colorScheme.primary)
? Icon(
Icons.check,
color: Theme.of(context).colorScheme.primary,
)
: null,
onTap: () {
game_l10n.setGameLocale(lang.$1);
@@ -331,16 +331,9 @@ class _SettingsScreenState extends State<SettingsScreen> {
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(label),
Text('$percentage%'),
],
),
Slider(
value: value,
onChanged: onChanged,
divisions: 10,
children: [Text(label), Text('$percentage%')],
),
Slider(value: value, onChanged: onChanged, divisions: 10),
],
),
),