From bebbcb1d54513c8c7b1f2ddcd75339d7de9f89f2 Mon Sep 17 00:00:00 2001 From: sihoo Date: Tue, 29 Sep 2026 06:48:47 +0000 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EB=B6=80=20=ED=83=80=EC=9D=B4?= =?UTF-8?q?=EB=A8=B8=20=ED=86=B5=EA=B3=84=20=EB=B0=95=EC=8A=A4=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 초단위까지 표시하면서 "50시간 57분 0초"처럼 길어진 값이 줄바꿈되며 박스 밖으로 넘치던 문제를, FittedBox로 한 줄에 맞게 자동 축소되도록 수정. Co-Authored-By: Claude Sonnet 5 --- lib/ui/study_timer_screen.dart | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/ui/study_timer_screen.dart b/lib/ui/study_timer_screen.dart index f368634..12dcef9 100644 --- a/lib/ui/study_timer_screen.dart +++ b/lib/ui/study_timer_screen.dart @@ -507,20 +507,25 @@ class _StudyTimerScreenState extends State Widget _statBox(String label, String value) { return Container( - width: 100, - padding: const EdgeInsets.symmetric(vertical: 14), + width: 108, + padding: const EdgeInsets.symmetric(vertical: 14, horizontal: 6), decoration: BoxDecoration( color: AppPalette.paper, borderRadius: BorderRadius.circular(16), border: Border.all(color: AppPalette.sage), ), child: Column( + mainAxisSize: MainAxisSize.min, children: [ Text(label, style: TextStyle(color: Colors.grey[600], fontSize: 12)), const SizedBox(height: 4), - Text( - value, - style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15), + FittedBox( + fit: BoxFit.scaleDown, + child: Text( + value, + maxLines: 1, + style: const TextStyle(fontWeight: FontWeight.bold, fontSize: 15), + ), ), ], ),