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

@@ -457,4 +457,3 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp>
}
}
}

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

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

View File

@@ -125,11 +125,7 @@ class RetroVolumeSlider extends StatelessWidget {
/// 레트로 스타일 슬라이더
class RetroSlider extends StatelessWidget {
const RetroSlider({
super.key,
required this.value,
required this.onChanged,
});
const RetroSlider({super.key, required this.value, required this.onChanged});
final double value;
final ValueChanged<double> onChanged;
@@ -205,11 +201,7 @@ class RetroDebugToggle extends StatelessWidget {
/// 레트로 스타일 토글
class RetroToggle extends StatelessWidget {
const RetroToggle({
super.key,
required this.value,
required this.onChanged,
});
const RetroToggle({super.key, required this.value, required this.onChanged});
final bool value;
final ValueChanged<bool> onChanged;

View File

@@ -452,4 +452,3 @@ class _SettingsScreenState extends State<SettingsScreen> {
}
}
}

View File

@@ -176,12 +176,7 @@ class CanvasBattleComposer {
final cells = _spriteToCells(charFrame.lines);
final charY = frameHeight - cells.length - 1;
return AsciiLayer(
cells: cells,
zIndex: 2,
offsetX: charX,
offsetY: charY,
);
return AsciiLayer(cells: cells, zIndex: 2, offsetX: charX, offsetY: charY);
}
/// 몬스터 레이어 생성 (z=1)
@@ -312,9 +307,7 @@ class CanvasBattleComposer {
// ============================================================================
AsciiLayer _createCriticalTextLayer(int subFrame) {
final textLines = subFrame % 2 == 0
? critTextFrames[0]
: critTextFrames[1];
final textLines = subFrame % 2 == 0 ? critTextFrames[0] : critTextFrames[1];
final cells = _textLinesToCells(textLines, AsciiCellColor.positive);
final textWidth = textLines.isNotEmpty ? textLines[0].length : 0;
final offsetX = (frameWidth - textWidth) ~/ 2;

View File

@@ -47,10 +47,7 @@ class SplashScreen extends StatelessWidget {
fontSize: 16,
color: RetroColors.cream,
shadows: [
Shadow(
color: RetroColors.brown,
offset: Offset(1, 1),
),
Shadow(color: RetroColors.brown, offset: Offset(1, 1)),
],
),
),