From 012d4dafd24e1b5f83cbec4a8ebdcaebc1e89667 Mon Sep 17 00:00:00 2001 From: JiWoong Sul Date: Mon, 22 Dec 2025 16:05:01 +0900 Subject: [PATCH] =?UTF-8?q?fix(ui):=20stats=5Fpanel=20Row=20=EC=98=A4?= =?UTF-8?q?=EB=B2=84=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 라벨을 Expanded로 변경하여 유연한 레이아웃 적용 - 좁은 공간에서도 오버플로우 방지 --- lib/src/features/game/widgets/stats_panel.dart | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/src/features/game/widgets/stats_panel.dart b/lib/src/features/game/widgets/stats_panel.dart index c97996b..40a9942 100644 --- a/lib/src/features/game/widgets/stats_panel.dart +++ b/lib/src/features/game/widgets/stats_panel.dart @@ -153,16 +153,22 @@ class _StatRow extends StatelessWidget { Widget build(BuildContext context) { return Row( children: [ - SizedBox( - width: 50, - child: Text(label, style: const TextStyle(fontSize: 11)), + // 라벨 (Flexible로 오버플로우 방지) + Expanded( + child: Text( + label, + style: const TextStyle(fontSize: 11), + overflow: TextOverflow.ellipsis, + ), ), + // 값 Text( '$value', style: const TextStyle(fontSize: 11, fontWeight: FontWeight.bold), ), + // 변화량 표시 if (change != null) ...[ - const SizedBox(width: 4), + const SizedBox(width: 2), AnimatedBuilder( animation: fadeAnimation, builder: (context, child) {