From 0a427e50ff1647b307d7ae40e82ea48d5467935e Mon Sep 17 00:00:00 2001 From: Roland Geider Date: Thu, 9 Oct 2025 22:43:50 +0200 Subject: [PATCH] Make sure the plate weights don't wrap in the calculator --- lib/widgets/routines/plate_calculator.dart | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/widgets/routines/plate_calculator.dart b/lib/widgets/routines/plate_calculator.dart index d5a59fda..4e5c06b7 100644 --- a/lib/widgets/routines/plate_calculator.dart +++ b/lib/widgets/routines/plate_calculator.dart @@ -38,12 +38,15 @@ class PlateWeight extends StatelessWidget { shape: BoxShape.circle, border: Border.all(color: Colors.black, width: isSelected ? 2 : 0), ), - child: Text( - value.toString(), - textAlign: TextAlign.center, - style: TextStyle( - color: isSelected ? Colors.black : Colors.black87, - fontWeight: isSelected ? FontWeight.bold : FontWeight.normal, + child: FittedBox( + fit: BoxFit.scaleDown, + child: Text( + value.toString(), + textAlign: TextAlign.center, + style: TextStyle( + color: isSelected ? Colors.black : Colors.black87, + fontWeight: isSelected ? FontWeight.bold : FontWeight.normal, + ), ), ), ),