All Questions
45 questions
0
votes
0
answers
65
views
Error: TypeError: null: type 'minified:BR' is not a subtype of type 'List<dynamic>'
I am keep on getting this error code Error: TypeError: null: type 'minified:BR' is not a subtype of type 'List' when I try to upload my json in the firebase to my website in flutter. Here is the code ...
0
votes
0
answers
14
views
Replacing the firestore database with a json file on a personal server in dart flutter
I'm going to replace the firestore database with a json file on a personal server.
Currently, information from Firebase is called with this piece of code
static Stream<AnnouncementAggr> ...
1
vote
1
answer
265
views
Flutter withConverter fromJson/toJson syntax and methods for all Firestore types
I have spent an hour scouring the internet for how to use withConverter to marshall various Firestore v2 types into Flutter objects so that I can use them. It has been impossible to find how to do ...
0
votes
1
answer
34
views
How to upload multiple fields and document in firebase?
I'm trying to make a flutter application which contains a quiz model in it, including Firebase as database. I have a structure for the fields in my firebase which I'm currently following (JSON format ...
0
votes
0
answers
42
views
How do you parse through firebase response of this type?
So I have read about the other general JSON parsing, although I cannot find a solution for my specific issue. I am pulling the data from firebase using a stream, what is shown in the screenshot is ...
0
votes
1
answer
198
views
How to filter data in Realtime Database via Flutter
Is there any possible way to filter data in Realtime Database(on Firebase).
I'd like to filter them via checkbox values that can be multiple checked.
There will be 4 different elements to search in db:...
0
votes
1
answer
102
views
Having problems in decoding from a JSON String in Firebase to a Map<String, Model> in Flutter/Dart
I have this UserData model class that has a Map<String, Model>, in which Model is another model class.
When I do jsonEncode to Firebase's Firestore everything seems fine as it looks ok in the ...
0
votes
1
answer
46
views
What am I supposed to using this toJson function for?
I copied this code from somewhere online that said that it is good to use a model for your data interfacing. I've used the fromJson function a lot so far, but never the toJson function since anytime I ...
0
votes
1
answer
281
views
Not able to download json file through url (Flutter/dart)
I'd like to download the JSON file which can be accessed by this url https://firebasestorage.googleapis.com/v0/b/prufungssimulation-caff9.appspot.com/o/5qPfjoZjdNXyN5Ob2q3pFbj5MKy1.json?alt=media. ...
0
votes
1
answer
92
views
get specific value of Data from cloud firestore
I am getting my documents from cloud firestore with:
QuerySnapshot querySnapshot = await FirebaseFirestore.instance.collection("section").get();
final allData = querySnapshot.docs.map((doc) =...
2
votes
2
answers
3k
views
Flutter: type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast
Im trying to make a list ti json for firestore, and have the following code:
static Map<String, dynamic> toJson(Message? message) => {
'id': message?.id,
'senderId': message?...
0
votes
1
answer
48
views
Paggination on api data in flutter?
List connectProfile = [];
connectProfile = response['data']['other_profile_verified'];
GridView.builder(
shrinkWrap: true,
...
-1
votes
1
answer
42
views
How do I convert this object so that I can use it in my chat model?
I want to loop through the data received from Firebase Realtime Database and for each piece of data, pass it through my ChatData model. However, when I try to pass in snapshot.value it says that The ...
0
votes
1
answer
41
views
How to Store Http json data into variables and calculate with firestore data Flutter
How to take http json data and store in variables and in the same page read firestore data and calculate with reference to http json data and display
Example: Json Data : a=1,b=2,c=3
Firestore Data : ...
0
votes
1
answer
473
views
How do I turn AsyncSnapshot data into a Map?
I want to get some json data in my FutureBuilder but for some reason my code throws a
_TypeError (type '_JsonQuerySnapshot' is not a subtype of type 'Map<dynamic, dynamic>')
whenever I try to ...