Changed colors in SegmendetControl

This commit is contained in:
Felix Kirchner
2025-04-18 20:30:07 +02:00
parent 7ce11fb597
commit fbe8437f92

View File

@@ -79,12 +79,15 @@ class _RoundViewState extends State<RoundView> {
child: SizedBox( child: SizedBox(
height: 40, height: 40,
child: CupertinoSegmentedControl<int>( child: CupertinoSegmentedControl<int>(
unselectedColor: theme.backgroundTintColor,
selectedColor: theme.primaryColor,
groupValue: _caboPlayerIndex, groupValue: _caboPlayerIndex,
children: Map<int, Widget>.fromIterable( children: Map<int, Widget>.fromIterable(
widget.gameSession.players.asMap().keys, widget.gameSession.players.asMap().keys,
value: (index) => Padding( value: (index) => Padding(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
horizontal: gameSession.players.length > 3 ? 7 : 15, horizontal:
gameSession.players.length > 3 ? 11 : 15,
), ),
child: Text( child: Text(
widget.gameSession.players[index], widget.gameSession.players[index],