Implemented FittedBox Widget
This commit is contained in:
@@ -123,10 +123,12 @@ class _RoundViewState extends State<RoundView> {
|
||||
index,
|
||||
Padding(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal:
|
||||
horizontal: 4 +
|
||||
_getSegmendetControlPadding(maxLength),
|
||||
vertical: 6,
|
||||
),
|
||||
child: FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child: Text(
|
||||
name,
|
||||
textAlign: TextAlign.center,
|
||||
@@ -134,8 +136,8 @@ class _RoundViewState extends State<RoundView> {
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
fontSize: _getSegmendetControlFontSize(
|
||||
widget.gameSession
|
||||
.getMaxLengthOfPlayerNames()),
|
||||
maxLength),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user