From 44c474ae774ddbc730261fb6752c03f09f6261f0 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Mon, 18 May 2026 22:43:53 +0200 Subject: [PATCH] fix: setState issue --- lib/presentation/widgets/player_selection.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index 00d6c11..ca3566a 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -143,9 +143,9 @@ class _PlayerSelectionState extends State { 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]);