refactor(ui): 기타 화면 정리
- FrontScreen, HallOfFameScreen 개선 - NewCharacterScreen, SettingsScreen 정리 - App 초기화 로직 정리
This commit is contained in:
@@ -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),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user