Questions tagged [dart-stream]

22 questions
0
votes
1 answer

Stream Listening For List Updates

I'm trying to understand how to use streams to notify listeners when there is a new addition to a list, below I wrote an example program that sums up what I'm trying to accomplish. Everytime there is a NEW string added to the existing 'names' list,…
OBurnsy22
  • 29
  • 3
0
votes
1 answer

Generic Widget for listening Streams in Flutter

I would like to create a StatefulWidget which I'll use all over the app for listening streams of different types. Since I try to keep all the widgets Stateless I wanted to extract this functionality. I've created this: class StreamListener
Karzel
  • 928
  • 9
  • 24
0
votes
0 answers

Data not rebuild (restart) with rxdart

I do floating alert which is controlled with stream. The logic of that alert is, when tap the OK button on it to turn true to stream and then close. I will show my codes, and please fix me what my logic wrong. Widget dataState( AsyncSnapshot…
La Pyae
  • 371
  • 3
  • 19
0
votes
1 answer

How to return a Stream using an async* function in Flutter

I am working on a chat app using Flutter and Firebase. I am new to Dart and so got stuck when I wanted to create a function which fetches (using await) a particular document from one collection (forums) and use an array property of the forum…
Ali99
  • 3
  • 7
0
votes
0 answers

Broadcast stream in Flutter only responds to one of multiple listeners

I receive data from a BLE unit and have a broadcast stream exposed by a singleton locator (Get_It) to my application. From the data, I want to build several small display widgets that need to display different information based on the same data…
JadedEric
  • 1,943
  • 2
  • 26
  • 49
0
votes
1 answer

What is the equivalent of Kotlin's Flow.flatMapLatest in Dart Stream?

In Kotlin there is Flow.flatMapLatest() function that: Returns a flow that switches to a new flow produced by transform function every time the original flow emits a value. When the original flow emits a new value, the previous flow produced by…
Sergio
  • 27,326
  • 8
  • 128
  • 149
-1
votes
1 answer

Flutter Streambuilder stuck in connectionstate.waiting

i have a problem with a Flutter application. I want to receive data from a firebase firestore by an Document id. The problem is, i cant replicate the data in one collection, so i have to use two collections. My data ist a Measurement(String,…
1
2