From 1e730cebe61e0c40faa6051a09bf82b2571309b3 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Wed, 24 Dec 2025 13:01:40 +0100 Subject: [PATCH] wrap isLoading into mounted and setState --- lib/presentation/widgets/player_selection.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index fda5ea7..1e283fb 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -78,7 +78,11 @@ class _PlayerSelectionState extends State { suggestedPlayers = [...loadedPlayers]; } }); - isLoading = false; + if (mounted) { + setState(() { + isLoading = false; + }); + } }); }