'get big amount of data from flutter firebase

i am working on a social media application and i want to show the user posts of other followed user , i have an idea to put the link of all the posts of other user together and use them in a futurebuild statement, but the problem is if we have more than 1000 posts for example , it could take a while to retrieve all the data and then show it to the user,(note : i am useing pageView builder the display each post alone), my question is , how can we make the program to display about 10 posts and then in the background it could still work on the other posts , so the user dont have to wait untill all posts are retrieved. thank your for your attention !!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source