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(); }