From 06a9c0cd84e8089161d4ca6ed43bd0a2281d7d2c Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Tue, 23 Dec 2025 22:59:01 +0100 Subject: [PATCH] remove futurebuilder from player selection and refactor --- lib/presentation/widgets/player_selection.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index 916ed37..fda5ea7 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -54,7 +54,6 @@ class _PlayerSelectionState extends State { Future.delayed(minimumSkeletonDuration), ]).then((results) => results[0] as List); _allPlayersFuture.then((loadedPlayers) { - isLoading = false; setState(() { // If a list of available players is provided, use that list. if (widget.availablePlayers.isNotEmpty) { @@ -79,6 +78,7 @@ class _PlayerSelectionState extends State { suggestedPlayers = [...loadedPlayers]; } }); + isLoading = false; }); }