FutureBuilder and StreamBuilder

350 views
Skip to first unread message

Michael Tawiah Sowah

unread,
Sep 30, 2018, 2:59:31 AM9/30/18
to Flutter Dev
Hi,
I would first like to Know whether there can a bloC without using streams or rx dart etc.?

Now I have a future that fetches a list of post from the server and would appreciate some guidance here on the following:

1. anytime you land on the page and there are new posts I want to fetch it should I use  FutureBuilder and StreamBuilder?

2. and while on the page if there's a new post I want to notify the user (this guess should be a stream)

3. but when you on the page and you click on a post to view full and then you come back how do I ensure that it does not make another fetch of the already fetched post especially If am using a stream from a bloC.

4. and finally how do I ensure do apply this to a lazy loading concept.

Also, I wanted to find out How do I implement streams in such a way that when you load a full view of a post and come back it does not re-fetch the whole data already fetched but just updates with new posts

I would appreciate any guidance and pointers on this.

Thank you
Reply all
Reply to author
Forward
0 new messages