What I want to do is to retrieve data from Cloud Firestore just for user Logged into the app. I am using Auth Firebase and I built a method to retrieve some documents from a specific collection called "user" and it works and it show the right Name of the user logged and the user […]
- Tags ), ); } } class Stream extends StatefulWidget { @override _StreamState createState() => _StreamState(); } class _StreamState extends Sta, ); }); } else if (snapshot.data == null) { return Center(child: CircularProgressIndicator()); }, ], any user logged I got the same data from all user except name and email address. this is my code: final databaseReference = Firestore.instan, AsyncSnapshot snapshot) { if (snapshot.connectionState == ConnectionState.done) { return ListView.builder(, builder: (context, child: Container( width: 60, child: ListView.builder( shrinkWrap: true, child: Row( mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ Text( snapshot.data.documents[index]['al, elevation: 15, fontWeight: FontWeight.bold, height: '60%', int index) { return Card( color: Color(0xFF1f2032), int index) { return Column( children: [ Stream(), isEqualTo: firebaseUser.email) .getDocuments(); } @override Widget build(BuildContext context) { return FutureBuilder(, itemBuilder: (BuildContext context, itemCount: snapshot.data.documents.length, snapshot) { // if (!snapshot.hasData) return Text('Loading data please Wait'); return Column( children: [, style: TextStyle( color: Colors.white, What I want to do is to retrieve data from Cloud Firestore just for user Logged into the app. I am using Auth Firebase and I built a method t