From ebb531d825cc3bcc4dde2201cd0829022f8b26d0 Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Mon, 24 Nov 2025 21:33:28 +0100 Subject: [PATCH] initialize `_searchBarController` internally instead of using widget controller --- lib/presentation/widgets/player_selection.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index cf70072..2e42d80 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -27,7 +27,8 @@ class _PlayerSelectionState extends State { List selectedPlayers = []; List suggestedPlayers = []; List allPlayers = []; - late final TextEditingController _searchBarController; + late final TextEditingController _searchBarController = + TextEditingController(); late final AppDatabase db; late Future> _allPlayersFuture; late final List skeletonData = List.filled( @@ -39,7 +40,6 @@ class _PlayerSelectionState extends State { void initState() { super.initState(); db = Provider.of(context, listen: false); - _searchBarController = widget.controller; loadPlayerList(); }