Issue Using Flutter 3.3.9, I fetch a record from my Firestore database using a Streambuilder. I use the following code segment to do this: StreamBuilder<Object>( stream: FirebaseFirestore.instance .collection(‘users’) .doc(userId) .snapshots(), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return
Continue readingTag: firebase
reading data from firebase firestore collection at stream builder
Issue I got trouble with firebase fireStore. There is a stream builder reading data from items collection. Inside items collection there is some fields and another collections. I haven’t any problem with fields, the problem is with collection. how to
Continue readingAdding a row with FirebaseAuth onError on flutter project
Issue I’m trying to make a row appear after the onError event activates, my idea is to do something like what’s in the code, but I can’t figure that out signInAndUpButton(context, true, () { FirebaseAuth.instance .signInWithEmailAndPassword( email: _emailTextController.text, password: _passwordTextController.text)
Continue readingUse DateTime.now() whehn I create an user in flutter with firebase
Issue I want to create a model user like this : @JsonSerializable() class User { final String id; final String email; final bool isAdmin; final bool canDeleteUser; final bool canCreateUser; final String nom; final String prenom; final DateTime createdDate; final
Continue readingreading data from firebase firestore collection at stream builder
Issue I got trouble with firebase fireStore. There is a stream builder reading data from items collection. Inside items collection there is some fields and another collections. I haven’t any problem with fields, the problem is with collection. how to
Continue readingPlacing a Firebase Stream in a method
Issue When accessing data from Firebase a QuerySnapshot is commonly returned. Is there a way to wrap this method so instead of a QuerySnapshot the data can be cleaned so it will return, say, a List? Currently, I’m accessing my
Continue readinghow can we search for a word in a firebase document field
Issue I am building a social media app with Flutter Firebase. I am currently developing a hashtag feature. I want to query all the posts which contains the hashtag in its caption? ARAYCONTAINS not working Here’s my code class HashtagPage
Continue readingFlutter _JsonQuerySnapshot' has no instance method '[]'
Issue I have collection for Users and groups, I want to display list of last update groups. But, the user uid must be stay in member field(array) of group Collection. So, I use StreamBuilder and get snapshot like this, FirebaseFirestore.instance
Continue readingHow to listen to stream variable using bloc | Could not find the correct Provider<StateStreamable<.>> above this BlocBuilder<StateStreamable<.>, <.>>
Issue I am looking for the right way of implementing streams using bloc. I have a appUser of type AppUser which changes based on the stream . I want to listen to this appUser throughout the application using bloc. My
Continue readingHow do I know if there are more documents left to get from a firestore collection?
Issue I’m using flutter and firebase. I use pagination, max 5 documents per page. How do I know if there are more documents left to get from a firestore collection. I want to use this information to enable/disable a next
Continue reading