Flutter widget that builds itself based on the latest snapshot of interaction with a Dart stream.
Questions tagged [stream-builder]
642 questions
0
votes
2 answers
Flutter Nested Stream builder -- last stream is getting null before showing data
I am trying to make an app where I need a nested stream builder. The Stream builder looks something like this. but the widgets are built before the last stream is loaded so I get error calling getter null,
StreamBuilder(
stream: some_stream,
…

Jamilur Rahman
- 69
- 2
- 12
0
votes
0 answers
How can I solve this "build function returned null" error?
I am aware this question has been asked a few times and I have tried what was suggested, i.e. placing "return" in the right places. I have also followed the instructions in my console and tried to add an empty Container, but what happens is that my…

Code Poet
- 6,222
- 2
- 29
- 50
0
votes
2 answers
AsyncSnapshot state is always connectionState.waiting
I'm trying to have a ListView dynamically update depending on the contents of a TextField (a search bar).
The ListView is inside a "ScenariosList" widget, and contains a list of "Scenarios", which is a custom widget containing a title, content and…

Tom Milner
- 1
- 1
- 2
0
votes
1 answer
Flutter - Do I need a FutureBuilder here?
In this example, I'm trying to understand whether I need to use a FutureBuilder, in order to have the value of the boolean "selected" available for my onTap method.
return Card(
color: Color.fromARGB(255, 233, 30, 99),
elevation:…

Code Poet
- 6,222
- 2
- 29
- 50
0
votes
0 answers
Async loading two dependent streams when using FutureBuilder
In a pretty complex sheet, I am using FutureBuilder and Listview.builder which help me to list all groups around me (using Algolia search), which looks as follows:
future = _algolia
.index('groups')
.setAroundLatLng(
…

user3532201
- 579
- 1
- 9
- 23
0
votes
1 answer
Flutter stream add data on another page
I am a beginner with Flutter and just created my first basic app.
It's using a listview as a front page with a FloatinActionButton which navigates to another page. That page has a form on it, which returns an object to the first page.
After watching…

RoyRobsen
- 457
- 1
- 9
- 20
0
votes
1 answer
Flutter: StreamBuilder behaves like StatelessWidget
I am a beginner at programming and try to code an App in Flutter. I load data from algolia to StreamBuilder (by using an algolia lib in combination with as.Stream() - otherwise it doesnt work). The code works well, but it does not automatically…

Alexandra
- 79
- 7
0
votes
0 answers
How to update screen when some item in list change flutter using StreamBuilder
I am try to update an count value that is present inside every item present in the listview. I m using Streambuilder to fetch the list up data.
While increasing the count value of every time Streambuilder build method called again and my count data…

BalaramNayak
- 1,295
- 13
- 16
-1
votes
1 answer
The issue is in product price
i dont know what the issue in my code
but when i remain 2 quantity and 200 price and go back and go to cart and i press add icon it show 400 price and 2 quantity but i want 3quantity and 300 price
I think issue is in updating product price and…

Muhammad Zohaib
- 61
- 8
-1
votes
1 answer
Flutter Exception : ( Stream Builder Show issue ... null check operator used on a null value !! )
m trying to show The users That have connection with the current user in The Stream Builder of The Home page and i am facing this issue !!
StreamBuilder>>(
stream: controller.chatsStream(),
builder:…

FERHATI KHALIL
- 11
- 1
-1
votes
1 answer
trying to use streambuilder to get data from firestore but it gives me an error
The error it brings on the screen after running the flutter run command is:
NoSuchMethodError:'documents'method not found Receiver:Instance of '_JsonQuerySnapshot' Arguments:[]
Below is my code
import…
-1
votes
1 answer
The relevant error-causing widget was StreamBuilder>
I am trying to find the solution for this error, help!
how can i solve this ?
i use this to make a chat app using firebase
════════ Exception caught by widgets library ═══════════════════════════════════
Bad state: field does not exist within the…
-1
votes
1 answer
How do I show notification for every new entry I get from Stream builder in flutter?
I am using stream builder for fetching api in my app, what I am trying to achieve is to get notification or print message in the console every time the stream gives a new entry. I have heard there are packages for notifications but I don't know…

MOBILES RECOVERY
- 25
- 1
- 6
-1
votes
1 answer
websocket stream debounceTime not working in flutter
Hi I need to add some delay on my IOWebSocketChannel streem to slow it down.
I used stream.debounceTime(Duration(seconds: 4)) to call the builder method every 4 seconds, but the builder method never runs. If I remove debounceTime, StreamBuilder…

Erfan Eghterafi
- 4,344
- 1
- 33
- 44
-1
votes
1 answer
My ListTile widgets of a ListView builder are not scrollable and are displaying render issues
The widgets(Listtile) inside the listview builder is not scrollable. I looked for similar problems here in the internet. Most of them doesn't work. The database functions works perfectly like saving into firebase, deleting data into firebase but the…

NewbieProgrammer
- 100
- 7