flutter_typeahead
flutter_typeahead copied to clipboard
TypeAhead doesn't show any suggestions. Even though it finds elements by query, it doesn't build any suggestions list
`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"), ),`
Does the item builder work when just returning listtile?
Yes
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.
Closed due to lack of followup