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(