Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeAhead doesn't show any suggestions. Even though it finds elements by query, it doesn't build any suggestions list #414

Closed
Lazizbek97 opened this issue Jul 7, 2022 · 4 comments

Comments

@Lazizbek97
Copy link

Lazizbek97 commented Jul 7, 2022

`TypeAheadField(
suggestionsCallback: (searchText) =>
controller.getAllCustomers(
searchText),
itemBuilder: (context, index) =>
SuggestedCustomerCard(
customer: controller
.suggestionCustomers[index],
query: controller
.customerSearchController
.text,
),
onSuggestionSelected: (index) =>
controller.addCustomer(controller
.suggestionCustomers[
index]),

hideOnLoading: true,
errorBuilder: (context, index)=> Text("Errorr"),
noItemsFoundBuilder: (context)=> Text("No item found"),
),`

@maxy-hi
Copy link

maxy-hi commented Sep 22, 2022

Does the item builder work when just returning listtile?

@Lazizbek97
Copy link
Author

Yes

@maxy-hi
Copy link

maxy-hi commented Sep 23, 2022

Would it be possible to have a look inside the SuggestedCustomerCard to see what that is building. I'm wondering if the builder just doesn't support cards.

@sjmcdowall
Copy link
Collaborator

Closed due to lack of followup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants