Make sure the plate weights don't wrap in the calculator

This commit is contained in:
Roland Geider
2025-10-09 22:43:50 +02:00
parent b4c77bf238
commit 0a427e50ff

View File

@@ -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,
),
),
),
),