0

I want to build a mobile app infinite scroll pagination like we see on discourse. You can see which post is currently displayed (4th out of total 11 posts, see screenshot) and you can move to a different post in the thread from there itself (e.g. select 10th post and jump to that).

I looked at this package - https://pub.dev/packages/infinite_scroll_pagination

and this suggestion - Flutter ListView lazy loading

But they do not cover the 4/11 or jump to a post feature. I don't want to load all the posts because a thread can have over 1000 posts and will not be ideal without lazy loading.

Any suggestions on how to go about solutioning such a feature?

  • With pagination and lazy loading, how do I show which post is displayed on the screen out of the 1000+ in the db.
  • How do I jump to the 983rd post if the user enters that post number in the entry box

Image from app scroll indicator that I am trying to build

Image from discourse navigation

Rahul
  • 26
  • 2

0 Answers0