-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
`String newText = suggestion.toString();
if (submitOnSuggestionTap) {
textField.focusNode.unfocus();
itemSubmitted(suggestion);
if (clearOnSubmit) {
clear();
}
} else {
String newText = suggestion.toString();
textChanged(newText);
}
textField.controller.text =
appendOnTap? textField.controller.text +newText: newText;`
I think it would be really useful if something like the above snippet was implemented in updateOverlay , as it would allow for implementing "suggest as you type" kind of text areas with filters like the one below, which matches last typed single words with the suggestions list:
itemFilter: (item, query) { return item .toLowerCase() .startsWith(query.toLowerCase().split(' ').last); },
Metadata
Metadata
Assignees
Labels
No labels