Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....
- body: StreamBuilder(
- stream: _movieCollection.snapshots(),
- builder: (context, snapshot) {
- switch (snapshot.connectionState) {
- case ConnectionState.waiting:
- return Center(child: CircularProgressIndicator());
- default:
- return ListView.builder(
- itemCount: snapshot.data.documents.length,
- itemBuilder: (context, index) {
- return _mainContent(snapshot.data.documents[index]);
- },
- );
- }
- },
- ),
- ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement