Questions tagged [flutter-streambuilder]
192 questions
0
votes
2 answers
LateInitializationError: Field 'chatRoomsStream' has not been initialized in Flutter
I'm building a Messenger app on Flutter using Firebase and when I click to chat with another user - I get this exception before the previous messages are loaded.
======== Exception caught by widgets library…

VenoM
- 453
- 3
- 9
- 17
0
votes
2 answers
Flutter StreamBuilder errors
Implemented StreamBuilder to display items in shopping cart's updated prices. Everything works as expected when one or two items are in cart, but when add third item I get the third item correctly but first and second items in cart display following…

SenTnel
- 31
- 7
0
votes
1 answer
How can I implement Stream to get list of sub collection for each docs ? -flutter
I'm try to get sub collection from each doc ex.clothes,notifer witch I have more docs , that means I don't know its id ,My bossiness Logic was to fetch the main collection for getting all the documents and then for each doc get its sub collection…

Mo7ammed 7amad
- 67
- 6
0
votes
0 answers
two streambuilders gives me RangeError (index): Invalid value: Only valid value is 0: 1 when it supposed to read two docs from 2 different collections
What im trying to do is filling a card with the necessary data it needs which is userImage and UserFirstname from my users collection and also data from my subcollection(carReviews)in my carInfo collection where i store the necessary review…

Arminmos
- 3
- 1
0
votes
1 answer
Getting compile time errors while building Streams in Flutter
I'm trying to return this List as a Stream, but I'm getting the below errors:
1. The body might complete normally, causing 'null' to be returned, but the return type is a potentially non-nullable type.
2. A value of type…

xpetta
- 607
- 12
- 28
0
votes
1 answer
StreamBuilder updating the stream only after hot restart
I am building an app where it collects all the orders and order details placed from Firebase. I have to get 2 things
Salon details from contactnumber which I saved using singleton method once the user logs in
Customer details from CustID
What…

wamika
- 21
- 1
- 8
0
votes
1 answer
Problem with stream and firebase Bad state: field does not exist within the DocumentSnapshotPlatform
I have a StreamBuilder that is meant to be getting me a list of documents from firestore based on a variable being passed through, though I am getting the above error.
StreamBuilder
StreamBuilder(
stream:…

Boss Nass
- 3,384
- 9
- 48
- 90
0
votes
1 answer
Flutter Update Text Widget Variable without Reloading
Im using Flutter with Firestore to make Investing Application.
enter image description here
In this page, I get Firestore's data in Streambuilder.
The data what i recieved are displayed in Listview with Inkwell.
What I want to do is when I click the…

flyer
- 29
- 3
0
votes
1 answer
Listen to changes and get info on updated fields only
I have Flutter/Firebase app, which allows users to store their book reading data into Firestore (books completed reading, reading currently etc). I would like to implement a feature, which allows users to see if someone completes reading a book (FS…

maisy003
- 3
- 2
0
votes
2 answers
How to pass a Firestore document from a stream to next page in Flutter?
I have a listview where each item is one document from a firestore collection. I would like to tap the item and pass the document information to a details page.
This is how I am retrieving document information within the first stream:
child:…

Ian Carberry
- 1
- 2
0
votes
3 answers
ERROR: The argument type 'Object?' can't be assigned to the parameter type 'String?'
I have a TextFormField widget wrapped inside a StreamBuilder, in TextFormField widget, inside the decoration, when is pass snapshot.error to the errorText argument, it gives an error:
The argument type 'Object?' can't be assigned to the parameter…

sharmaji saheb
- 57
- 2
- 7
0
votes
2 answers
type '_JsonQuerySnapshot' is not a subtype of type 'Map' in a StreamBuilder
I am getting this error when trying to fetch user posts from Firestore with the StreamBuilder.
@override
Widget build(BuildContext context) {
return Column(
children: [
Expanded(
child: StreamBuilder(
stream: postRef
…

han da
- 95
- 9
0
votes
1 answer
Use Stream to populate TextEditingController in flutter app
I can't seem to pass a QuerySnapshot from one class to another without losing the Snapshot so I am trying to find a work around (see my post here). I am trying to pull the data again by using a StreamBuilder.
StreamBuilder (
stream:…

LostTexan
- 431
- 5
- 18
0
votes
1 answer
Flutter Child State not updating based on changing Parent State: FlutterFirestore Stream
I have two widgets: Home and EntryList. In the Home widget, I can change the value date that is always being passed into EntryList which should then update it's Stream widget.
However, when I change the Date value, the EntryList widget is still…

pythonNovice
- 1,130
- 1
- 14
- 36
0
votes
2 answers
I want to Navigate to another page and parse with firestore data but how do I do that when I am using MaterialPageRoute?
I want to navigate from Products Page to a ProductDetail page but I am using data directly from firebase firestore. What do I put in the MaterialPageRoute as the arguments? I am also using StreamBuilder to get data snapshot from firebase.
Below is…

Ambroze kweronda
- 189
- 1
- 7