From 525e231c068a5807cfde925bccc6e1937ee9dfdd Mon Sep 17 00:00:00 2001 From: JiWoong Sul Date: Thu, 15 Jan 2026 21:34:30 +0900 Subject: [PATCH] =?UTF-8?q?style(ui):=20victory=5Foverlay=20ASCII=20?= =?UTF-8?q?=EC=95=84=ED=8A=B8=20=EC=A0=95=EB=A0=AC=20=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 트로피 ASCII 좌우 공백 균형 조정 - THE END 텍스트 FittedBox로 자동 스케일링 - 폰트 크기 14→12 조정 --- .../game/widgets/victory_overlay.dart | 55 ++++++++++--------- 1 file changed, 28 insertions(+), 27 deletions(-) diff --git a/lib/src/features/game/widgets/victory_overlay.dart b/lib/src/features/game/widgets/victory_overlay.dart index daf3fe7..e13419b 100644 --- a/lib/src/features/game/widgets/victory_overlay.dart +++ b/lib/src/features/game/widgets/victory_overlay.dart @@ -583,17 +583,18 @@ class _VictoryOverlayState extends State } Widget _buildTrophyAsciiArt(Color gold) { + // 중앙 정렬을 위해 각 줄 좌우 공백 균형 맞춤 const trophy = ''' - ___________ - '._==_==_=_.' - .-\\: /-. - | (|:. |) | - '-|:. |-' - \\::. / - '::. .' - ) ( - _.' '._ - '-------' '''; + ____________ + '._==_==_=_.' + .-\\: /-. + | (|:. |) | + '-|:. |-' + \\::. / + '::. .' + ) ( + _.' '._ + '-------' '''; return Text( trophy, @@ -649,25 +650,25 @@ class _VictoryOverlayState extends State Widget _buildTheEnd(BuildContext context, Color gold) { const theEnd = ''' ████████╗██╗ ██╗███████╗ ███████╗███╗ ██╗██████╗ -╚══██╔══╝██║ ██║██╔════╝ ██╔════╝████╗ ██║██╔══██╗ - ██║ ███████║█████╗ █████╗ ██╔██╗ ██║██║ ██║ - ██║ ██╔══██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║ - ██║ ██║ ██║███████╗ ███████╗██║ ╚████║██████╔╝ - ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ '''; + ╚══██╔══╝██║ ██║██╔════╝ ██╔════╝████╗ ██║██╔══██╗ + ██║ ███████║█████╗ █████╗ ██╔██╗ ██║██║ ██║ + ██║ ██╔══██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║ + ██║ ██║ ██║███████╗ ███████╗██║ ╚████║██████╔╝ + ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ '''; - return Column( - children: [ - Text( - theEnd, - style: TextStyle( - fontFamily: 'JetBrainsMono', - fontSize: 14, - color: gold, - height: 1.0, - ), - textAlign: TextAlign.center, + // FittedBox로 감싸서 화면 너비에 맞게 자동 스케일링 + return FittedBox( + fit: BoxFit.scaleDown, + child: Text( + theEnd, + style: TextStyle( + fontFamily: 'JetBrainsMono', + fontSize: 12, + color: gold, + height: 1.0, ), - ], + textAlign: TextAlign.center, + ), ); }