Changed colors in SegmendetControl
This commit is contained in:
@@ -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],
|
||||||
|
|||||||
Reference in New Issue
Block a user