Implemented FittedBox Widget

This commit is contained in:
2025-07-01 21:29:10 +02:00
parent 3da8c886ff
commit 9fcd919847
2 changed files with 14 additions and 11 deletions

View File

@@ -123,19 +123,21 @@ class _RoundViewState extends State<RoundView> {
index,
Padding(
padding: EdgeInsets.symmetric(
horizontal:
horizontal: 4 +
_getSegmendetControlPadding(maxLength),
vertical: 6,
),
child: Text(
name,
textAlign: TextAlign.center,
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: _getSegmendetControlFontSize(
widget.gameSession
.getMaxLengthOfPlayerNames()),
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(
name,
textAlign: TextAlign.center,
maxLines: 1,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: _getSegmendetControlFontSize(
maxLength),
),
),
),
),

View File

@@ -2,7 +2,7 @@ name: cabo_counter
description: "Mobile app for the card game Cabo"
publish_to: 'none'
version: 0.3.2+248
version: 0.3.3+255
environment:
sdk: ^3.5.4
@@ -26,6 +26,7 @@ dependencies:
sdk: flutter
intl: any
syncfusion_flutter_charts: ^30.1.37
auto_size_text: ^3.0.0
dev_dependencies:
flutter_test: