style: dart format 적용

This commit is contained in:
JiWoong Sul
2026-03-09 15:34:35 +09:00
parent 4791bda669
commit b98451919a
14 changed files with 26 additions and 90 deletions

View File

@@ -789,10 +789,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
child: Row(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Expanded(
flex: 2,
child: DesktopCharacterPanel(state: state),
),
Expanded(flex: 2, child: DesktopCharacterPanel(state: state)),
Expanded(
flex: 3,
child: DesktopEquipmentPanel(
@@ -800,10 +797,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
combatLogEntries: _combatLogController.entries,
),
),
Expanded(
flex: 2,
child: DesktopQuestPanel(state: state),
),
Expanded(flex: 2, child: DesktopQuestPanel(state: state)),
],
),
),
@@ -875,5 +869,4 @@ class _GamePlayScreenState extends State<GamePlayScreen>
return KeyEventResult.ignored;
}
}

View File

@@ -271,9 +271,7 @@ class CompactMonsterHpBar extends StatelessWidget {
decoration: BoxDecoration(
color: Colors.orange.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(4),
border: Border.all(
color: Colors.orange.withValues(alpha: 0.3),
),
border: Border.all(color: Colors.orange.withValues(alpha: 0.3)),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,

View File

@@ -428,7 +428,6 @@ class DeathOverlay extends StatelessWidget {
return gold.toString();
}
/// 장비 슬롯 이름 반환
String _getSlotName(EquipmentSlot? slot) {
if (slot == null) return '';

View File

@@ -27,10 +27,7 @@ class DesktopCharacterPanel extends StatelessWidget {
margin: const EdgeInsets.all(4),
color: RetroColors.panelBg,
shape: RoundedRectangleBorder(
side: const BorderSide(
color: RetroColors.panelBorderOuter,
width: 2,
),
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
borderRadius: BorderRadius.circular(0),
),
child: Column(
@@ -95,10 +92,7 @@ class _TraitsList extends StatelessWidget {
final traits = [
(l10n.traitName, state.traits.name),
(l10n.traitRace, GameDataL10n.getRaceName(context, state.traits.race)),
(
l10n.traitClass,
GameDataL10n.getKlassName(context, state.traits.klass),
),
(l10n.traitClass, GameDataL10n.getKlassName(context, state.traits.klass)),
(l10n.traitLevel, '${state.traits.level}'),
];
@@ -175,10 +169,7 @@ class _SkillsList extends StatelessWidget {
: null;
final isOnCooldown =
skillState != null &&
!skillState.isReady(
state.skillSystem.elapsedMs,
skill!.cooldownMs,
);
!skillState.isReady(state.skillSystem.elapsedMs, skill!.cooldownMs);
return _SkillRow(
skillName: skillName,
@@ -224,11 +215,7 @@ class _SkillRow extends StatelessWidget {
),
),
if (isOnCooldown)
const Icon(
Icons.hourglass_empty,
size: 10,
color: Colors.orange,
),
const Icon(Icons.hourglass_empty, size: 10, color: Colors.orange),
const SizedBox(width: 4),
Text(
rank,

View File

@@ -31,10 +31,7 @@ class DesktopEquipmentPanel extends StatelessWidget {
margin: const EdgeInsets.all(4),
color: RetroColors.panelBg,
shape: RoundedRectangleBorder(
side: const BorderSide(
color: RetroColors.panelBorderOuter,
width: 2,
),
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
borderRadius: BorderRadius.circular(0),
),
child: Column(
@@ -104,11 +101,7 @@ class _InventoryList extends StatelessWidget {
padding: const EdgeInsets.symmetric(vertical: 2),
child: Row(
children: [
const Icon(
Icons.monetization_on,
size: 10,
color: RetroColors.gold,
),
const Icon(Icons.monetization_on, size: 10, color: RetroColors.gold),
const SizedBox(width: 4),
Expanded(
child: Text(
@@ -134,10 +127,7 @@ class _InventoryList extends StatelessWidget {
}
Widget _buildItemRow(BuildContext context, InventoryEntry item) {
final translatedName = GameDataL10n.translateItemString(
context,
item.name,
);
final translatedName = GameDataL10n.translateItemString(context, item.name);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 1),
child: Row(

View File

@@ -20,9 +20,7 @@ class DesktopPanelHeader extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
decoration: const BoxDecoration(
color: RetroColors.darkBrown,
border: Border(
bottom: BorderSide(color: RetroColors.gold, width: 2),
),
border: Border(bottom: BorderSide(color: RetroColors.gold, width: 2)),
),
child: Text(
title.toUpperCase(),
@@ -86,10 +84,7 @@ class DesktopSegmentProgressBar extends StatelessWidget {
height: 12,
decoration: BoxDecoration(
color: color.withValues(alpha: 0.15),
border: Border.all(
color: RetroColors.panelBorderOuter,
width: 1,
),
border: Border.all(color: RetroColors.panelBorderOuter, width: 1),
),
child: Row(
children: List.generate(segmentCount, (index) {

View File

@@ -22,10 +22,7 @@ class DesktopQuestPanel extends StatelessWidget {
margin: const EdgeInsets.all(4),
color: RetroColors.panelBg,
shape: RoundedRectangleBorder(
side: const BorderSide(
color: RetroColors.panelBorderOuter,
width: 2,
),
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
borderRadius: BorderRadius.circular(0),
),
child: Column(
@@ -103,9 +100,7 @@ class _PlotList extends StatelessWidget {
size: 12,
color: isCompleted
? RetroColors.expGreen
: (isCurrent
? RetroColors.gold
: RetroColors.textDisabled),
: (isCurrent ? RetroColors.gold : RetroColors.textDisabled),
),
const SizedBox(width: 4),
Expanded(

View File

@@ -354,13 +354,13 @@ class _EnhancedAnimationPanelState extends State<EnhancedAnimationPanel>
flex: 2,
child: switch ((shouldShowMonsterHp, combat)) {
(true, final c?) => CompactMonsterHpBar(
combat: c,
monsterHpCurrent: _currentMonsterHp,
monsterHpMax: _currentMonsterHpMax,
monsterLevel: widget.monsterLevel,
flashAnimation: _monsterFlashAnimation,
monsterHpChange: _monsterHpChange,
),
combat: c,
monsterHpCurrent: _currentMonsterHp,
monsterHpMax: _currentMonsterHpMax,
monsterLevel: widget.monsterLevel,
flashAnimation: _monsterFlashAnimation,
monsterHpChange: _monsterHpChange,
),
_ => const SizedBox.shrink(),
},
),

View File

@@ -388,5 +388,4 @@ class _HpMpBarState extends State<HpMpBar> with TickerProviderStateMixin {
],
);
}
}