Questions tagged [flutter-streambuilder]

192 questions
1
vote
0 answers

i need to add check box to every values in the realtimedatabase that is shown in the ui

i need to add check box to every values in the realtimedatabase that is shown in the ui this is an attendance system in this program if i click on any check box all check box will be selected . i need to individually select and diselect so i can add…
1
vote
0 answers

How to convert FutureBuilder into StreamBuilder

I made a widget that should automatically update if there are changes to the Hive database value. I have just learned that Futures only get the value once, so I need a Stream to constantly monitor changes. Now, how can I use StreamBuilder with my…
1
vote
2 answers

Change a dropdown's items when another dropdown's value is chosen in flutter (UI wont update)

I have two drop downs, and I want to do things when they get values selected. One of those is to change the second buttondrop items based on what's selected in the first dropdown. For example: Dropdown1 is a list of car manufactuers Dropdown2 is a…
1
vote
1 answer

reading data from firebase firestore collection at stream builder

I got trouble with firebase fireStore. There is a stream builder reading data from items collection. Inside items collection there is some fields and another collections. I haven't any problem with fields, the problem is with collection. how to…
1
vote
3 answers

StreamBuilder not updating Firestore data in Flutter

I'm making a Flutter application and I'm trying to get the user's data in the app. So basically, the user registers with his info (name, email, password), and this data is displayed in a ProfilePage when he's logged in. According to Firestore…
1
vote
1 answer

StreamBuilder not displaying fetched data from MongoDB database in Flutter

I am trying to implement streambuilder without Firebase, using a MongoDB database. The aim is to build a simple chat app, live streaming the messages. So far, the live streaming when I click on the send button works since I see the message displayed…
Alb
  • 23
  • 3
1
vote
1 answer

Updating Firestore Document Boolean value from ListTile Flutter

I am developing an app that allows users to check kit within bags on vehicles at their base station. I so far have the app working so that it takes the user information at log in, and shows the bags available at their particular station, in this…
1
vote
2 answers

How to StreamBuild a single document in flutter

I have this code Stream> readTicket() => FirebaseFirestore.instance .collection('tickets') .where("added_by", isEqualTo: member?.uid) .snapshots() .map( (snapshots) => snapshots.docs .map( …
1
vote
0 answers

Flutter video_player with StreamBuilder

I want to use audio_video_progress_bar for my video_player, it require a stream istead for the "DurationState" in this code: StreamBuilder( stream: _durationState, builder: (context, snapshot) { final durationState =…
1
vote
1 answer

Stream builder returns null on released flutter app using firestore

StreamBuilder widget works well on debug mode but on release mode returns null. I had tried several solutions found here, but none worked. So maybe I am missing something in my code. Here are my source…
1
vote
1 answer

Execute a method if stream has the right value in it | Flutter | RxDart

Let us say that I have a stream (A) that could either get : SuccessModel or the FailureModel. I subscribe to this stream A using a StreamBuilder and well, I just want to route to the next page if this stream contains SuccessModel and stay at the…
Divyam Dhadwal
  • 395
  • 3
  • 19
1
vote
0 answers

Why event channel disables when an asyncTask will execute? In flutter android

I have written a native code for flutter that will download file from given url. Everything works fine and file will download and store perfectly. The problem is that when i want to retrieve downloaded percentage(download progress). I used event…
1
vote
0 answers

when playback audio I need to show timer using flutter sound

In my chat app I added a feature to record audio using flutter_sound package. Now I need to show timer when user playback that record. It worked fine before dart migration and before the package update. Now I can't get it to work. Here is the code…
1
vote
0 answers

Bad state: Stream has already been listened to. : Error when using WebSocket with Stream builder

I am using a web socket to get the response. I create a stream using it and assign it to the StreamBuilder stream property (refer code below) for getting data snapshots. Problem: When I "re-navigate" to the screen which is using this Stream Builder,…
ayush
  • 464
  • 5
  • 17
1
vote
1 answer

Firebase query data appears and disappears quickly - StreamBuilder

I'm implementing a search functionality in the app. I'm using firebase where clause to filter the data the filtered data appears for a second and it then disappeared immediately here is my code String searchName = ""; TextFormField( …
1
2
3
12 13