Real time filtering
fvisticot opened this issue · 5 comments
I need to filter the listview when user tapes in the search bar.
I have implemented the TextEditingController + listener
But, the listview is hidden when the searchbar is displayed.
How to display the list and filtered list when searchbar is active and users is typing text ?
I'm not really sure what the issue is. Can you post the relevant code?
Assuming I do understand you correctly though, Isn't it true that you control the ListView? Also consider using https://pub.dartlang.org/packages/material_search if you want specifically to filter a ListVIew based on user input dynamically.
I think he is searching for something like this: https://medium.com/@dominik2003schulze2/how-to-create-a-searchable-filterable-listview-in-flutter-4faf3e300477
onChange is implemented here - 1f6507f , is this sufficient?
This works
If you mean that the contents of the page are 'pushed up' when the on screen keyboard is displayed, try setting 'resizeToAvoidBottomPadding' to false in your Scaffold. Hope this helps