style: dart format 적용

- 전체 Dart 소스 및 테스트 파일 포매팅 통일
- trailing comma, 줄바꿈, 인덴트 정리
This commit is contained in:
JiWoong Sul
2026-02-13 16:08:23 +09:00
parent bccb5cb188
commit d07a0c5554
42 changed files with 460 additions and 422 deletions

View File

@@ -257,7 +257,11 @@ class _NewCharacterScreenState extends State<NewCharacterScreen> {
mainAxisSize: MainAxisSize.min,
children: [
if (!isPaidUser) ...[
const Icon(Icons.play_circle, size: 14, color: RetroColors.gold),
const Icon(
Icons.play_circle,
size: 14,
color: RetroColors.gold,
),
const SizedBox(width: 4),
],
Text(

View File

@@ -105,8 +105,9 @@ class _ClassInfo extends StatelessWidget {
final percent = (passive.value * 100).round();
return switch (passive.type) {
ClassPassiveType.hpBonus => game_l10n.passiveHpBonus(percent),
ClassPassiveType.physicalDamageBonus =>
game_l10n.passivePhysicalBonus(percent),
ClassPassiveType.physicalDamageBonus => game_l10n.passivePhysicalBonus(
percent,
),
ClassPassiveType.defenseBonus => game_l10n.passiveDefenseBonus(percent),
ClassPassiveType.magicDamageBonus => game_l10n.passiveMagicBonus(percent),
ClassPassiveType.evasionBonus => game_l10n.passiveEvasionBonus(percent),

View File

@@ -62,9 +62,15 @@ class StatsSection extends StatelessWidget {
// 스탯 그리드
Row(
children: [
Expanded(child: _StatTile(label: l10n.statStr, value: str)),
Expanded(child: _StatTile(label: l10n.statCon, value: con)),
Expanded(child: _StatTile(label: l10n.statDex, value: dex)),
Expanded(
child: _StatTile(label: l10n.statStr, value: str),
),
Expanded(
child: _StatTile(label: l10n.statCon, value: con),
),
Expanded(
child: _StatTile(label: l10n.statDex, value: dex),
),
],
),
const SizedBox(height: 8),
@@ -73,8 +79,12 @@ class StatsSection extends StatelessWidget {
Expanded(
child: _StatTile(label: l10n.statInt, value: intelligence),
),
Expanded(child: _StatTile(label: l10n.statWis, value: wis)),
Expanded(child: _StatTile(label: l10n.statCha, value: cha)),
Expanded(
child: _StatTile(label: l10n.statWis, value: wis),
),
Expanded(
child: _StatTile(label: l10n.statCha, value: cha),
),
],
),
const SizedBox(height: 12),
@@ -116,10 +126,7 @@ class StatsSection extends StatelessWidget {
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
_UndoButton(
canUndo: canUndo,
onPressed: onUndo,
),
_UndoButton(canUndo: canUndo, onPressed: onUndo),
const SizedBox(width: 16),
_RollButton(
canRoll: canRoll,
@@ -222,11 +229,7 @@ class _UndoButton extends StatelessWidget {
children: [
// 무료 유저는 광고 아이콘 표시
if (!isPaidUser && canUndo) ...[
const Icon(
Icons.play_circle,
size: 14,
color: RetroColors.gold,
),
const Icon(Icons.play_circle, size: 14, color: RetroColors.gold),
const SizedBox(width: 4),
],
Icon(
@@ -240,7 +243,9 @@ class _UndoButton extends StatelessWidget {
style: TextStyle(
fontFamily: 'PressStart2P',
fontSize: 11,
color: canUndo ? RetroColors.textLight : RetroColors.textDisabled,
color: canUndo
? RetroColors.textLight
: RetroColors.textDisabled,
),
),
],