Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return StreamBuilder(
- stream: Firestore.instance.collection('profile').where("uid", isEqualTo: currentUID).snapshots(),
- builder: (BuildContext context, AsyncSnapshot snapshot) {
- if (!snapshot.hasData) return CircularProgressIndicator();
- if (snapshot.hasData) {
- return ListView.builder(
- itemCount: snapshot.data.documents.length,
- itemBuilder: (context, index) {
- DocumentSnapshot ds = snapshot.data.documents[index];
- return Row(
- children: <Widget>[
- Expanded (child:Text(ds["fullname"])),
- ],
- );
- }
- );
- }
- }
- );
Add Comment
Please, Sign In to add comment