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

how to load more data on scroll? #5

Closed
amrit-citrusleaf opened this issue May 15, 2019 · 5 comments
Closed

how to load more data on scroll? #5

amrit-citrusleaf opened this issue May 15, 2019 · 5 comments

Comments

@amrit-citrusleaf
Copy link

Thanks for this easy-to-follow code/article series on Flutter's BLOC pattern. After going through the code, I realized that there's no way we can load more data on scrolling to the bottom of the list. How do you think we can achieve it? Obviously, there's going to be Listview/gridview controller to listen to the scrolling events, but how to pass the page number to the Bloc class so that it can call the API (with new page number) again using the repository/provider classes?

Many thanks in advance!

@computerzman
Copy link

Interested ...

@SAGARSURI
Copy link
Owner

@amrit-citrusleaf and @computerzman I am working on Part 3 of this series where you will find this feature and lot more.

@Xoshbin
Copy link

Xoshbin commented Jul 31, 2019

Is it implemented?

@SAGARSURI
Copy link
Owner

I will update it this weekend.

@SAGARSURI
Copy link
Owner

SAGARSURI commented Aug 3, 2019

@amrit-citrusleaf @computerzman @Xoshbin Implemented the feature. It's part of the master branch. Here is the commit link:
e5ba19c

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

4 participants