Questions tagged [stream-builder]

Flutter widget that builds itself based on the latest snapshot of interaction with a Dart stream.

642 questions
-1
votes
2 answers

Can a StreamBuilder be outside the build method?

I can't find any information on where the StreamBuilder needs to be within the code so I am asking here. I have a screen in my flutter app that has a lot of input textfields. Each textfield has this code structure: TextField( …
LostTexan
  • 431
  • 5
  • 18
-1
votes
1 answer

how to use query on streambuilder flutter firestore

im using streambuilder, and i want the data 'order by' and 'where' at the same time. cause everytime im using both of the query my list doesn'show up, but when im using only 1 query the list show up here my…
-1
votes
1 answer

The getter 'documents' was called on null

I'm using flutter and firebase to make a to-do list. It keeps showing me this error even after I checked if my snap.data == null .But I am not sure why still doesn't work. please help. I have checked similar problems like this but still didn't…
user13468400
-1
votes
1 answer

how to implement pagination using firebase and flutter with streams and use it in streambuilder

I have made this stream that fetch 10 user from firebase. and using streamBuilder it shows user in a Listview(Flutter App). but how to use pagination in such case to get 10 more users after user scroll half of the screen. this is my stream.which…
vijayrealdeal
  • 19
  • 1
  • 1
  • 7
-1
votes
1 answer

Awaiting for an async forEach to finish all iterations then collect the data in Dart

I need to combine 3 tables' data in a bloc: getAll() async { List filledList = []; final moveInProgramList = await moveInProgramRepository.getAllFromDb(); moveInProgramList.forEach((mip) async { final move =…
mrahimygk
  • 512
  • 5
  • 20
-1
votes
1 answer

How do you access data from a StreamBuilder if it requires searching for nested values?

I have a StreamBuilder that is connected to Firestore. It supplies a stream of type List. GameResults is a class that has a key called competitors, which is an array of Competitor objects, each of which has a key called competitorId,…
user3735816
  • 225
  • 2
  • 11
-1
votes
1 answer

StreamBuilder is rebuild with previous snapshot.data and not the initialData

I am trying to use bloc architecture in Flutter app and for this purpose I use StreamController and StreamBuilder. The issue is, that StreamBuilder repeats the last snapshot.data every time it's returned. I am nesting StreamBuilders. So there is one…
surToTheW
  • 772
  • 2
  • 10
  • 34
-1
votes
1 answer

using didUpdateWidget to replace a stream causes "bad state: Stream has already been listened to"

I have a StreamBuilder that I want to be able to pause and unpause and, since StreamBuilder doesn't expose it's underlying StreamSubscription, I have to create a proxy stream to forward the source stream's elements while exposing a…
caseycrogers
  • 226
  • 2
  • 8
-1
votes
1 answer

Streambuilder not rebuilding after BLOC event

I am trying to implement pagination in my application but I have not been successful in doing so. I am using Firebase, specifically Firestore with the BLOC pattern alongside Built Value which I started using recently to make pagination easier. I…
dotmp3
  • 494
  • 4
  • 13
-2
votes
1 answer

Flutter Web: StreamBuilder browser resize & rebuild

I have a simple HomePage with a streambuilder listView. I know that flutter will rebuild/repaint as needed by design but does that mean the StreamBuilder will go get the same data over and over on every rebuild ? The reason I ask is with every…
AhabLives
  • 1,308
  • 6
  • 22
  • 34
-2
votes
1 answer

Flutter - Streambuilder Error due to no return

I am getting an error with my Streambuilder. I do not understand how to fix it. Please, can you help me to solve this? Many thanks. ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ The following…
Laurent Thomas
  • 232
  • 4
  • 24
-2
votes
1 answer

"Invalid argument(s)" error on snapshot of StreamBuilder - Flutter

I have a quick question. "snapshot.hasError" condition is getting true and "snapshot.hasData" condition is false. Output that I am getting on print in "snapshot.hasError" is "Invalid argument(s)". What does it mean? Stream is getting data from…
Faizan Kamal
  • 1,732
  • 3
  • 27
  • 56
1 2 3
42
43