fix(ui): stats_panel Row 오버플로우 수정

- 라벨을 Expanded로 변경하여 유연한 레이아웃 적용
- 좁은 공간에서도 오버플로우 방지
This commit is contained in:
JiWoong Sul
2025-12-22 16:05:01 +09:00
parent 7cd8be88df
commit 012d4dafd2

View File

@@ -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) {