From a2522cef133f3df86283e2f8dab6e6083adfcb0d Mon Sep 17 00:00:00 2001 From: mathiskirchner Date: Mon, 24 Nov 2025 21:26:55 +0100 Subject: [PATCH] rename searchBarController to controller in PlayerSelection widget --- lib/presentation/views/main_menu/create_group_view.dart | 2 +- lib/presentation/widgets/player_selection.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/presentation/views/main_menu/create_group_view.dart b/lib/presentation/views/main_menu/create_group_view.dart index 28566f6..f593efe 100644 --- a/lib/presentation/views/main_menu/create_group_view.dart +++ b/lib/presentation/views/main_menu/create_group_view.dart @@ -70,7 +70,7 @@ class _CreateGroupViewState extends State { ), Expanded( child: PlayerSelection( - searchBarController: _searchBarController, + controller: _searchBarController, onChanged: (value) { selectedPlayers = [...value]; }, diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index c6b2f1a..cf70072 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -10,12 +10,12 @@ import 'package:provider/provider.dart'; import 'package:skeletonizer/skeletonizer.dart'; class PlayerSelection extends StatefulWidget { - final TextEditingController searchBarController; + final TextEditingController controller; final Function(List value) onChanged; const PlayerSelection({ super.key, - required this.searchBarController, + required this.controller, required this.onChanged, }); @@ -39,7 +39,7 @@ class _PlayerSelectionState extends State { void initState() { super.initState(); db = Provider.of(context, listen: false); - _searchBarController = widget.searchBarController; + _searchBarController = widget.controller; loadPlayerList(); }