flutter_typeahead icon indicating copy to clipboard operation
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

Open Lazizbek97 opened this issue 2 years ago • 3 comments

`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"), ),`

Lazizbek97 avatar Jul 07 '22 13:07 Lazizbek97

Does the item builder work when just returning listtile?

maxy-hi avatar Sep 22 '22 17:09 maxy-hi

Yes

Lazizbek97 avatar Sep 22 '22 18:09 Lazizbek97

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.

maxy-hi avatar Sep 23 '22 09:09 maxy-hi

Closed due to lack of followup

sjmcdowall avatar Jan 28 '23 18:01 sjmcdowall