
Code summary
TheAutocomplete
component is used on the Ecommerce UI demo app search page when you tap the search bar in the main page.
It consists of two sections: one presenting the search history and the second one presenting the query suggestions.
The AppBar
includes a SearchHeaderView
widget representing the search box on the autocomplete screen.
Usage
SliverAppBar
and SliverList
components representing the section header and section body respectively.
Usage

HistoryRowView
:
Usage

SuggestionRowView
:
Usage
HighlightedString.toInlineSpans()
from Flutter helpers.
The entire autocomplete logic can be found in the autocomplete_screen
file.
You can customize Autocomplete
in: