Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ....
  2. body: StreamBuilder(
  3. stream: _movieCollection.snapshots(),
  4. builder: (context, snapshot) {
  5. switch (snapshot.connectionState) {
  6. case ConnectionState.waiting:
  7. return Center(child: CircularProgressIndicator());
  8. default:
  9. return ListView.builder(
  10. itemCount: snapshot.data.documents.length,
  11. itemBuilder: (context, index) {
  12. return _mainContent(snapshot.data.documents[index]);
  13. },
  14. );
  15. }
  16. },
  17. ),
  18. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement