fix: setState issue

This commit is contained in:
2026-05-18 22:43:53 +02:00
parent 9c5e72e6ed
commit 44c474ae77

View File

@@ -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]);