All Questions
Tagged with google-cloud-firestore dart
4,220
questions
0
votes
1
answer
25
views
How to generate methods in `PerFieldToJson` using `json_serializable`?
Minimum reproducible code:
// foo.dart
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:cloud_firestore_odm/cloud_firestore_odm.dart';
import 'package:json_annotation/...
0
votes
0
answers
16
views
Flutter Create multiple document in same collection in Firestore
I want to create multiple documents inside the single or same collection in Firestor. The issue is when I can call the addTeacherBasicDetails() method, so create the perfect but after that, I can call ...
-2
votes
0
answers
42
views
flutter app not showing messages from firestore, messages are only getting stored
I was following a tutorial from Mitch koko channel on youtube. i created a messaging app. i followed the video exactly. my messages are getting stored in the firestore in the firebase database. but ...
1
vote
1
answer
52
views
Updating Firestore Documents Using Firebase Cloud Functions is Extremely Slow
I am trying to update documents using Firebase Cloud Functions. My document updates do not need to consider existing values, and since they primarily involve single document updates with minimal risk ...
0
votes
1
answer
38
views
Image not showing from Firebase Storage in Flutter app Circle Avatar
I am getting the image url but in network image or circle avatar image is not loading
Here is my code: (Getting URL from Firebase:)
String IMGURL = '';
_firebaseFirestore
.collection("Users&...
0
votes
2
answers
41
views
Cannot query the right place
whole filtering operation works fine except for 'sellerDetails.selectedHoursByDay'. I cannot reach out to the child values of selectedHoursByDay. DaysFilter is an array that contains the name of the ...
0
votes
0
answers
27
views
FirestonePigeonParser.h Issues while Compiling on Xcode
I'm trying to compile on flutter code on XCode and I keep getting this new issue.
It says "Expected a type" and "Unknown receiver 'FIRFilter'; did you. mean'CIFilter'?' `17x in this ...
1
vote
0
answers
31
views
Receiver Email Not Showing in Firestore Messages Collection
I'm working on a chat application using Flutter and Firebase. I'm trying to save and retrieve messages between users, including the receiver's email, but the receiver email is not appearing in my ...
0
votes
1
answer
27
views
The argument type 'Future<AggregateQuerySnapshot>' can't be assigned to the parameter type 'String'
This is my query
final db = FirebaseFirestore.instance;
final crabRef = db.collection('crab');
final scyllaSerrataQuery =
crabRef.where('species', isEqualTo: 'Scylla Serrata');
final ...
2
votes
0
answers
28
views
Why are login and logout times the same, and why is user information missing in my Flutter Firebase app?
I am developing a Flutter application using Firebase for authentication and Firestore for storing user data. I am encountering two issues:
The login and logout times for users are being recorded as ...
0
votes
0
answers
29
views
How to Fetch and Display Receiver's Email in Firebase for a Chat Application in Flutter?
I am developing a chat application using Flutter and Firebase. I need to fetch the receiver's email from Firebase and display it correctly in the chat screen. Additionally, I want to use the receiver'...
1
vote
0
answers
28
views
StateError (Bad state: field "message" does not exist within the DocumentSnapshotPlatform)
I'm working on a chat application in Flutter using Firebase Firestore for storing messages. I'm encountering an error when trying to access the message field from a Firestore document. The error ...
0
votes
2
answers
34
views
Problem in fetching the image from gallery in flutter over the icon by using imagepicker
This is the code for selecting the image in flutter but when i select the image from the gallery it does not show on the icon and when i select camera for taking the image it does not open the camera ...
0
votes
0
answers
19
views
Pulling from firebase; data being stored in unicode order of values rather then index of array
So I am working on a fitness app in flutter with firebase. I have this "freestyles" workout data structure where I am storing the exerciseIds of the exercises done in that workout. They're ...
0
votes
0
answers
22
views
Inconsistent Timestamps and Missing Details in Firestore Upon User Login and Logout
I'm implementing a user authentication and logging system in my Flutter application using Firebase Firestore. However, I've encountered two primary issues that I need help resolving:
Timestamps Issue:
...