From 3acfb76facf0e7f4e53a0aaf7fa2ef40285e0020 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 4 Mar 2026 22:00:00 +0100 Subject: [PATCH] Auto-sync: 20260304_220000 --- lib/ui/game/game_screen.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/ui/game/game_screen.dart b/lib/ui/game/game_screen.dart index c3dc480..c10cb96 100644 --- a/lib/ui/game/game_screen.dart +++ b/lib/ui/game/game_screen.dart @@ -95,16 +95,19 @@ class _GameScreenState extends State with TickerProviderStateMixin { Container( padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), decoration: BoxDecoration(color: theme.text.withOpacity(0.05), borderRadius: BorderRadius.circular(15)), - child: Row( - mainAxisSize: MainAxisSize.min, - children: [ - Text("$nameRed: $red", style: _getTextStyle(themeType, TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: theme.playerRed))), - Text(" - ", style: _getTextStyle(themeType, TextStyle(fontSize: 18, color: theme.text))), - Text("$nameBlue: $blue", style: _getTextStyle(themeType, TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: theme.playerBlue))), - ], + // AGGIUNTO FITTEDBOX QUI + child: FittedBox( + fit: BoxFit.scaleDown, + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Text("$nameRed: $red", style: _getTextStyle(themeType, TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: theme.playerRed))), + Text(" - ", style: _getTextStyle(themeType, TextStyle(fontSize: 18, color: theme.text))), + Text("$nameBlue: $blue", style: _getTextStyle(themeType, TextStyle(fontSize: 16, fontWeight: FontWeight.bold, color: theme.playerBlue))), + ], + ), ), ), - if (controller.lastMatchXP > 0) ...[ const SizedBox(height: 15), Container(