Guest User

Untitled

a guest
Feb 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. return StreamBuilder(
  2. stream: Firestore.instance.collection('profile').where("uid", isEqualTo: currentUID).snapshots(),
  3. builder: (BuildContext context, AsyncSnapshot snapshot) {
  4.  
  5. if (!snapshot.hasData) return CircularProgressIndicator();
  6.  
  7. if (snapshot.hasData) {
  8. return ListView.builder(
  9. itemCount: snapshot.data.documents.length,
  10. itemBuilder: (context, index) {
  11. DocumentSnapshot ds = snapshot.data.documents[index];
  12. return Row(
  13. children: <Widget>[
  14. Expanded (child:Text(ds["fullname"])),
  15. ],
  16. );
  17. }
  18. );
  19. }
  20. }
  21. );
Add Comment
Please, Sign In to add comment