Implemented maxLength attribute

This commit is contained in:
2026-01-17 22:40:56 +01:00
parent a713ccb59c
commit ed2d672dee
2 changed files with 12 additions and 7 deletions

View File

@@ -84,6 +84,7 @@ class _PlayerSelectionState extends State<PlayerSelection> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CustomSearchBar(
maxLength: Constants.MAX_PLAYER_NAME_LENGTH,
controller: _searchBarController,
constraints: const BoxConstraints(maxHeight: 45, minHeight: 45),
hintText: loc.search_for_players,