refactor(game): 게임 페이지 및 로컬라이제이션 정리

- GamePlayScreen 개선
- CharacterSheetPage 정리
- StoryPage 단순화
- 로컬라이제이션 정리
This commit is contained in:
JiWoong Sul
2026-01-08 15:46:34 +09:00
parent 9f10e3ee21
commit 56b568a832
3 changed files with 7 additions and 24 deletions

View File

@@ -105,11 +105,9 @@ class CharacterSheetPage extends StatelessWidget {
}
Widget _buildExpBar(BuildContext context) {
final localizations = L10n.of(context);
final progress = exp.max > 0
? (exp.position / exp.max).clamp(0.0, 1.0)
: 0.0;
final remaining = exp.max - exp.position;
return Padding(
padding: const EdgeInsets.all(12),
@@ -123,7 +121,7 @@ class CharacterSheetPage extends StatelessWidget {
),
const SizedBox(height: 4),
Text(
'$remaining ${localizations.xpNeededForNextLevel}',
'${exp.position} / ${exp.max}',
style: TextStyle(fontSize: 10, color: Colors.grey.shade600),
),
],