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) { Widget build(BuildContext context) {
return Row( return Row(
children: [ children: [
SizedBox( // 라벨 (Flexible로 오버플로우 방지)
width: 50, Expanded(
child: Text(label, style: const TextStyle(fontSize: 11)), child: Text(
label,
style: const TextStyle(fontSize: 11),
overflow: TextOverflow.ellipsis,
),
), ),
// 값
Text( Text(
'$value', '$value',
style: const TextStyle(fontSize: 11, fontWeight: FontWeight.bold), style: const TextStyle(fontSize: 11, fontWeight: FontWeight.bold),
), ),
// 변화량 표시
if (change != null) ...[ if (change != null) ...[
const SizedBox(width: 4), const SizedBox(width: 2),
AnimatedBuilder( AnimatedBuilder(
animation: fadeAnimation, animation: fadeAnimation,
builder: (context, child) { builder: (context, child) {