smartnsoft / flappy_search_bar

SearchBar widget to handle most of search cases
MIT License
173 stars 93 forks source link

Lazy load searching #23

Open alr2413 opened 4 years ago

alr2413 commented 4 years ago

Special thanks for providing this package.

I have a question about the package: "Is it possible to use this package to load more data when it's required?". Because, it's a common situation that you want to load more data from server on user demand by paginating results, specially when you have a huge amount of data. I think one simple solution for providing this feature is to define a method that return the list of items (response of future method) and so in this case there is no need to use the OnItemFound method. This option give us more flexibility for writing our logic.

Thanks in advance.

hmney commented 4 years ago

@alr2413 did you find a solution for that, I'm facing the same problem?

alr2413 commented 4 years ago

Because of this limitation, I do not use this package in my project. I have implemented my own search widget by using the following url:

https://www.filledstacks.com/post/flutter-infinite-scroll-using-flutter-only/

hope it helps you.

sagreine commented 3 years ago

not out of the box, but you could do it this way indirectly and likely improve on it a lot:

40 (comment)