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(
height: 40,
child: CupertinoSegmentedControl<int>(
unselectedColor: theme.backgroundTintColor,
selectedColor: theme.primaryColor,
groupValue: _caboPlayerIndex,
children: Map<int, Widget>.fromIterable(
widget.gameSession.players.asMap().keys,
value: (index) => Padding(
padding: EdgeInsets.symmetric(
horizontal: gameSession.players.length > 3 ? 7 : 15,
horizontal:
gameSession.players.length > 3 ? 11 : 15,
),
child: Text(
widget.gameSession.players[index],