style(ui): victory_overlay ASCII 아트 정렬 개선
- 트로피 ASCII 좌우 공백 균형 조정 - THE END 텍스트 FittedBox로 자동 스케일링 - 폰트 크기 14→12 조정
This commit is contained in:
@@ -583,17 +583,18 @@ class _VictoryOverlayState extends State<VictoryOverlay>
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildTrophyAsciiArt(Color gold) {
|
Widget _buildTrophyAsciiArt(Color gold) {
|
||||||
|
// 중앙 정렬을 위해 각 줄 좌우 공백 균형 맞춤
|
||||||
const trophy = '''
|
const trophy = '''
|
||||||
___________
|
____________
|
||||||
'._==_==_=_.'
|
'._==_==_=_.'
|
||||||
.-\\: /-.
|
.-\\: /-.
|
||||||
| (|:. |) |
|
| (|:. |) |
|
||||||
'-|:. |-'
|
'-|:. |-'
|
||||||
\\::. /
|
\\::. /
|
||||||
'::. .'
|
'::. .'
|
||||||
) (
|
) (
|
||||||
_.' '._
|
_.' '._
|
||||||
'-------' ''';
|
'-------' ''';
|
||||||
|
|
||||||
return Text(
|
return Text(
|
||||||
trophy,
|
trophy,
|
||||||
@@ -649,25 +650,25 @@ class _VictoryOverlayState extends State<VictoryOverlay>
|
|||||||
Widget _buildTheEnd(BuildContext context, Color gold) {
|
Widget _buildTheEnd(BuildContext context, Color gold) {
|
||||||
const theEnd = '''
|
const theEnd = '''
|
||||||
████████╗██╗ ██╗███████╗ ███████╗███╗ ██╗██████╗
|
████████╗██╗ ██╗███████╗ ███████╗███╗ ██╗██████╗
|
||||||
╚══██╔══╝██║ ██║██╔════╝ ██╔════╝████╗ ██║██╔══██╗
|
╚══██╔══╝██║ ██║██╔════╝ ██╔════╝████╗ ██║██╔══██╗
|
||||||
██║ ███████║█████╗ █████╗ ██╔██╗ ██║██║ ██║
|
██║ ███████║█████╗ █████╗ ██╔██╗ ██║██║ ██║
|
||||||
██║ ██╔══██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║
|
██║ ██╔══██║██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║
|
||||||
██║ ██║ ██║███████╗ ███████╗██║ ╚████║██████╔╝
|
██║ ██║ ██║███████╗ ███████╗██║ ╚████║██████╔╝
|
||||||
╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ''';
|
╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══════╝╚═╝ ╚═══╝╚═════╝ ''';
|
||||||
|
|
||||||
return Column(
|
// FittedBox로 감싸서 화면 너비에 맞게 자동 스케일링
|
||||||
children: [
|
return FittedBox(
|
||||||
Text(
|
fit: BoxFit.scaleDown,
|
||||||
theEnd,
|
child: Text(
|
||||||
style: TextStyle(
|
theEnd,
|
||||||
fontFamily: 'JetBrainsMono',
|
style: TextStyle(
|
||||||
fontSize: 14,
|
fontFamily: 'JetBrainsMono',
|
||||||
color: gold,
|
fontSize: 12,
|
||||||
height: 1.0,
|
color: gold,
|
||||||
),
|
height: 1.0,
|
||||||
textAlign: TextAlign.center,
|
|
||||||
),
|
),
|
||||||
],
|
textAlign: TextAlign.center,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user