flappy_search_bar icon indicating copy to clipboard operation
flappy_search_bar copied to clipboard

Lazy load searching

Open alr2413 opened this issue 5 years ago • 3 comments

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.

alr2413 avatar Apr 04 '20 18:04 alr2413

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

hmney avatar Jul 02 '20 13:07 hmney

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.

alr2413 avatar Jul 02 '20 18:07 alr2413

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

sagreine avatar Dec 28 '20 03:12 sagreine