Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy load searching #23

Open
alr2413 opened this issue Apr 4, 2020 · 3 comments
Open

Lazy load searching #23

alr2413 opened this issue Apr 4, 2020 · 3 comments

Comments

@alr2413
Copy link

alr2413 commented Apr 4, 2020

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 alr2413 changed the title Lazy load search action Lazy load searching Apr 4, 2020
@hmney
Copy link

hmney commented Jul 2, 2020

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

@alr2413
Copy link
Author

alr2413 commented Jul 2, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants