You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow SearchDelegate to alter TextField properties: autocorrect and enableSuggestions #98241
I have a screen with a custom search delegate. My search goes through names of local soccer teams (some with funky names). However during testing I noticed that the autocorrect sometimes would kick in and replace an exact match with a name with a real word. This was to me quite frustrating so I looked into the customisation options for the SearchDelegate class. I noticed a few of the TextField options could be set through the constructor, but none of the autocorrect related options.
Proposal
Allow the following:
autocorrect
enableSuggestions
To override via the constructor similar to how you can override the searchFieldLabel text.
changed the title [-]Allow SearchDelegate to alter TextField properties: `autocorrect`, `autofillHints` and `enableSuggestions`[/-][+]Allow SearchDelegate to alter TextField properties: `autocorrect` and `enableSuggestions`[/+]on Feb 11, 2022
I have the same issue with the autocomplete feature...The text in the search bar becomes a "black rectangle"(cf. screenshot) and User experience is degraded
Any workaround
?
I have the same issue with the autocomplete feature...The text in the search bar becomes a "black rectangle"(cf. screenshot) and User experience is degraded Any workaround ?
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[-]Allow SearchDelegate to alter TextField properties: `autocorrect`, `autofillHints` and `enableSuggestions`[/-][+]Allow SearchDelegate to alter TextField properties: `autocorrect` and `enableSuggestions`[/+]fvisticot commentedon Jun 5, 2022
I have the same issue with the autocomplete feature...The text in the search bar becomes a "black rectangle"(cf. screenshot) and User experience is degraded

Any workaround
?
fvisticot commentedon Jun 5, 2022
I found the issue with Theme customization
AguinaldoAranda commentedon Dec 18, 2023
Due to this issue: #138464
I needed to set autocorrect = false and I can't..., I'll need to use another approach to search records...
Add autocorrect and enableSuggestions to SearchDelegate (#154932)
justinmc commentedon Oct 24, 2024
Looks like this has been fixed in #154932.
If there's any part of this that should still stay around, let me know and I'll reopen!
github-actions commentedon Nov 7, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.