fix: setState issue
This commit is contained in:
@@ -143,9 +143,9 @@ class _PlayerSelectionState extends State<PlayerSelection> {
|
||||
child: TextIconTile(
|
||||
text: player.name,
|
||||
suffixText: getNameCountText(player),
|
||||
onIconTap: () {
|
||||
setState(() async {
|
||||
await HapticFeedback.selectionClick();
|
||||
onIconTap: () async {
|
||||
await HapticFeedback.selectionClick();
|
||||
setState(() {
|
||||
// Removes the player from the selection and notifies the parent.
|
||||
selectedPlayers.remove(player);
|
||||
widget.onChanged([...selectedPlayers]);
|
||||
|
||||
Reference in New Issue
Block a user