A month of Flutter: rendering a ListView with StreamBuilder

Originally published on The data for Birb will be stored in Firebase Cloud Firestore. When looking at patterns to handle getting and rendering data, I decided to go with the StreamBuilder example from the cloud_firestore package documentation. I don't know how well pagination will work with this approach so that will be an experiment for another day. The first change I'm making is turning the static List<int> into a Stream, and moving it further up the widget tree. I want the PostsList widget to only care about rendering items from a Stream, not how to create the Streamitself. This has the bonus of making it easier to mock data in the tests. finalStream<List<int>>_posts=Stream<
Recent posts