You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@khayargoli
listen to the onPageChanged: (index), here we have the current index, compare with the total number of elements you have in your list, if you have less than 5 left you can bring more.
void getMoreItems(int index, int length) {
final isBottom = index > length - 5;
if (isBottom && !postCubit.state.hasReachedMax && !postCubit.state.isLoading) {
getAllPost();
}
}
`
Here a detail you have to block until they arrive, the new items, and while you can show a loading paginate, in the end if it hasn't arrived yet, so you will have an infinite pagination.
My page view is working perfectly and thanks to this awesome plugin..
I wanted to implement pagination next and want to load more pages when user scrolls to the end of preloaded pages. (currently 10 pages at a time)
How can I achieve this? Any hints would be greatly appreciated.
Thanks
The text was updated successfully, but these errors were encountered: