style: dart format 적용
This commit is contained in:
@@ -457,4 +457,3 @@ class _AskiiNeverDieAppState extends State<AskiiNeverDieApp>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -789,10 +789,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
|||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(flex: 2, child: DesktopCharacterPanel(state: state)),
|
||||||
flex: 2,
|
|
||||||
child: DesktopCharacterPanel(state: state),
|
|
||||||
),
|
|
||||||
Expanded(
|
Expanded(
|
||||||
flex: 3,
|
flex: 3,
|
||||||
child: DesktopEquipmentPanel(
|
child: DesktopEquipmentPanel(
|
||||||
@@ -800,10 +797,7 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
|||||||
combatLogEntries: _combatLogController.entries,
|
combatLogEntries: _combatLogController.entries,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(flex: 2, child: DesktopQuestPanel(state: state)),
|
||||||
flex: 2,
|
|
||||||
child: DesktopQuestPanel(state: state),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -875,5 +869,4 @@ class _GamePlayScreenState extends State<GamePlayScreen>
|
|||||||
|
|
||||||
return KeyEventResult.ignored;
|
return KeyEventResult.ignored;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -271,9 +271,7 @@ class CompactMonsterHpBar extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Colors.orange.withValues(alpha: 0.1),
|
color: Colors.orange.withValues(alpha: 0.1),
|
||||||
borderRadius: BorderRadius.circular(4),
|
borderRadius: BorderRadius.circular(4),
|
||||||
border: Border.all(
|
border: Border.all(color: Colors.orange.withValues(alpha: 0.3)),
|
||||||
color: Colors.orange.withValues(alpha: 0.3),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
|||||||
@@ -428,7 +428,6 @@ class DeathOverlay extends StatelessWidget {
|
|||||||
return gold.toString();
|
return gold.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// 장비 슬롯 이름 반환
|
/// 장비 슬롯 이름 반환
|
||||||
String _getSlotName(EquipmentSlot? slot) {
|
String _getSlotName(EquipmentSlot? slot) {
|
||||||
if (slot == null) return '';
|
if (slot == null) return '';
|
||||||
|
|||||||
@@ -27,10 +27,7 @@ class DesktopCharacterPanel extends StatelessWidget {
|
|||||||
margin: const EdgeInsets.all(4),
|
margin: const EdgeInsets.all(4),
|
||||||
color: RetroColors.panelBg,
|
color: RetroColors.panelBg,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
side: const BorderSide(
|
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
|
||||||
color: RetroColors.panelBorderOuter,
|
|
||||||
width: 2,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(0),
|
borderRadius: BorderRadius.circular(0),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -95,10 +92,7 @@ class _TraitsList extends StatelessWidget {
|
|||||||
final traits = [
|
final traits = [
|
||||||
(l10n.traitName, state.traits.name),
|
(l10n.traitName, state.traits.name),
|
||||||
(l10n.traitRace, GameDataL10n.getRaceName(context, state.traits.race)),
|
(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}'),
|
(l10n.traitLevel, '${state.traits.level}'),
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -175,10 +169,7 @@ class _SkillsList extends StatelessWidget {
|
|||||||
: null;
|
: null;
|
||||||
final isOnCooldown =
|
final isOnCooldown =
|
||||||
skillState != null &&
|
skillState != null &&
|
||||||
!skillState.isReady(
|
!skillState.isReady(state.skillSystem.elapsedMs, skill!.cooldownMs);
|
||||||
state.skillSystem.elapsedMs,
|
|
||||||
skill!.cooldownMs,
|
|
||||||
);
|
|
||||||
|
|
||||||
return _SkillRow(
|
return _SkillRow(
|
||||||
skillName: skillName,
|
skillName: skillName,
|
||||||
@@ -224,11 +215,7 @@ class _SkillRow extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (isOnCooldown)
|
if (isOnCooldown)
|
||||||
const Icon(
|
const Icon(Icons.hourglass_empty, size: 10, color: Colors.orange),
|
||||||
Icons.hourglass_empty,
|
|
||||||
size: 10,
|
|
||||||
color: Colors.orange,
|
|
||||||
),
|
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Text(
|
Text(
|
||||||
rank,
|
rank,
|
||||||
|
|||||||
@@ -31,10 +31,7 @@ class DesktopEquipmentPanel extends StatelessWidget {
|
|||||||
margin: const EdgeInsets.all(4),
|
margin: const EdgeInsets.all(4),
|
||||||
color: RetroColors.panelBg,
|
color: RetroColors.panelBg,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
side: const BorderSide(
|
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
|
||||||
color: RetroColors.panelBorderOuter,
|
|
||||||
width: 2,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(0),
|
borderRadius: BorderRadius.circular(0),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -104,11 +101,7 @@ class _InventoryList extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(vertical: 2),
|
padding: const EdgeInsets.symmetric(vertical: 2),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(
|
const Icon(Icons.monetization_on, size: 10, color: RetroColors.gold),
|
||||||
Icons.monetization_on,
|
|
||||||
size: 10,
|
|
||||||
color: RetroColors.gold,
|
|
||||||
),
|
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Text(
|
child: Text(
|
||||||
@@ -134,10 +127,7 @@ class _InventoryList extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildItemRow(BuildContext context, InventoryEntry item) {
|
Widget _buildItemRow(BuildContext context, InventoryEntry item) {
|
||||||
final translatedName = GameDataL10n.translateItemString(
|
final translatedName = GameDataL10n.translateItemString(context, item.name);
|
||||||
context,
|
|
||||||
item.name,
|
|
||||||
);
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 1),
|
padding: const EdgeInsets.symmetric(vertical: 1),
|
||||||
child: Row(
|
child: Row(
|
||||||
|
|||||||
@@ -20,9 +20,7 @@ class DesktopPanelHeader extends StatelessWidget {
|
|||||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
|
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 6),
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: RetroColors.darkBrown,
|
color: RetroColors.darkBrown,
|
||||||
border: Border(
|
border: Border(bottom: BorderSide(color: RetroColors.gold, width: 2)),
|
||||||
bottom: BorderSide(color: RetroColors.gold, width: 2),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
title.toUpperCase(),
|
title.toUpperCase(),
|
||||||
@@ -86,10 +84,7 @@ class DesktopSegmentProgressBar extends StatelessWidget {
|
|||||||
height: 12,
|
height: 12,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: color.withValues(alpha: 0.15),
|
color: color.withValues(alpha: 0.15),
|
||||||
border: Border.all(
|
border: Border.all(color: RetroColors.panelBorderOuter, width: 1),
|
||||||
color: RetroColors.panelBorderOuter,
|
|
||||||
width: 1,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: List.generate(segmentCount, (index) {
|
children: List.generate(segmentCount, (index) {
|
||||||
|
|||||||
@@ -22,10 +22,7 @@ class DesktopQuestPanel extends StatelessWidget {
|
|||||||
margin: const EdgeInsets.all(4),
|
margin: const EdgeInsets.all(4),
|
||||||
color: RetroColors.panelBg,
|
color: RetroColors.panelBg,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
side: const BorderSide(
|
side: const BorderSide(color: RetroColors.panelBorderOuter, width: 2),
|
||||||
color: RetroColors.panelBorderOuter,
|
|
||||||
width: 2,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(0),
|
borderRadius: BorderRadius.circular(0),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -103,9 +100,7 @@ class _PlotList extends StatelessWidget {
|
|||||||
size: 12,
|
size: 12,
|
||||||
color: isCompleted
|
color: isCompleted
|
||||||
? RetroColors.expGreen
|
? RetroColors.expGreen
|
||||||
: (isCurrent
|
: (isCurrent ? RetroColors.gold : RetroColors.textDisabled),
|
||||||
? RetroColors.gold
|
|
||||||
: RetroColors.textDisabled),
|
|
||||||
),
|
),
|
||||||
const SizedBox(width: 4),
|
const SizedBox(width: 4),
|
||||||
Expanded(
|
Expanded(
|
||||||
|
|||||||
@@ -388,5 +388,4 @@ class _HpMpBarState extends State<HpMpBar> with TickerProviderStateMixin {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -125,11 +125,7 @@ class RetroVolumeSlider extends StatelessWidget {
|
|||||||
|
|
||||||
/// 레트로 스타일 슬라이더
|
/// 레트로 스타일 슬라이더
|
||||||
class RetroSlider extends StatelessWidget {
|
class RetroSlider extends StatelessWidget {
|
||||||
const RetroSlider({
|
const RetroSlider({super.key, required this.value, required this.onChanged});
|
||||||
super.key,
|
|
||||||
required this.value,
|
|
||||||
required this.onChanged,
|
|
||||||
});
|
|
||||||
|
|
||||||
final double value;
|
final double value;
|
||||||
final ValueChanged<double> onChanged;
|
final ValueChanged<double> onChanged;
|
||||||
@@ -205,11 +201,7 @@ class RetroDebugToggle extends StatelessWidget {
|
|||||||
|
|
||||||
/// 레트로 스타일 토글
|
/// 레트로 스타일 토글
|
||||||
class RetroToggle extends StatelessWidget {
|
class RetroToggle extends StatelessWidget {
|
||||||
const RetroToggle({
|
const RetroToggle({super.key, required this.value, required this.onChanged});
|
||||||
super.key,
|
|
||||||
required this.value,
|
|
||||||
required this.onChanged,
|
|
||||||
});
|
|
||||||
|
|
||||||
final bool value;
|
final bool value;
|
||||||
final ValueChanged<bool> onChanged;
|
final ValueChanged<bool> onChanged;
|
||||||
|
|||||||
@@ -452,4 +452,3 @@ class _SettingsScreenState extends State<SettingsScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -176,12 +176,7 @@ class CanvasBattleComposer {
|
|||||||
final cells = _spriteToCells(charFrame.lines);
|
final cells = _spriteToCells(charFrame.lines);
|
||||||
final charY = frameHeight - cells.length - 1;
|
final charY = frameHeight - cells.length - 1;
|
||||||
|
|
||||||
return AsciiLayer(
|
return AsciiLayer(cells: cells, zIndex: 2, offsetX: charX, offsetY: charY);
|
||||||
cells: cells,
|
|
||||||
zIndex: 2,
|
|
||||||
offsetX: charX,
|
|
||||||
offsetY: charY,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 몬스터 레이어 생성 (z=1)
|
/// 몬스터 레이어 생성 (z=1)
|
||||||
@@ -312,9 +307,7 @@ class CanvasBattleComposer {
|
|||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
AsciiLayer _createCriticalTextLayer(int subFrame) {
|
AsciiLayer _createCriticalTextLayer(int subFrame) {
|
||||||
final textLines = subFrame % 2 == 0
|
final textLines = subFrame % 2 == 0 ? critTextFrames[0] : critTextFrames[1];
|
||||||
? critTextFrames[0]
|
|
||||||
: critTextFrames[1];
|
|
||||||
final cells = _textLinesToCells(textLines, AsciiCellColor.positive);
|
final cells = _textLinesToCells(textLines, AsciiCellColor.positive);
|
||||||
final textWidth = textLines.isNotEmpty ? textLines[0].length : 0;
|
final textWidth = textLines.isNotEmpty ? textLines[0].length : 0;
|
||||||
final offsetX = (frameWidth - textWidth) ~/ 2;
|
final offsetX = (frameWidth - textWidth) ~/ 2;
|
||||||
|
|||||||
@@ -47,10 +47,7 @@ class SplashScreen extends StatelessWidget {
|
|||||||
fontSize: 16,
|
fontSize: 16,
|
||||||
color: RetroColors.cream,
|
color: RetroColors.cream,
|
||||||
shadows: [
|
shadows: [
|
||||||
Shadow(
|
Shadow(color: RetroColors.brown, offset: Offset(1, 1)),
|
||||||
color: RetroColors.brown,
|
|
||||||
offset: Offset(1, 1),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user