Questions tagged [stream-builder]

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

642 questions
6
votes
0 answers

Update Persistent Storage failure - Galaxy Tab S6/Linux

I am getting an "Update Persistent Storage" failure when running any Flutter app from my Linux computer to my Galaxy Tab S6 using "flutter clean" followed by "flutter run". This is something that just started happening after I added a few more…
codenstuff
  • 97
  • 1
  • 8
6
votes
2 answers

How exactly to merge multiple streams in firebase firestore

Before you say this is a duplicate question or that I should use nested stream builders, please hear me out. I am designing a social media type application. And I want users to receive updates whenever someone they are following posts something in…
Simeon
  • 692
  • 1
  • 6
  • 12
6
votes
2 answers

FLUTTER: How to use navigator in streambuilder?

I am trying to navigate inside a streambuilder but I have this error:"setState() or markNeedsBuild() called during build.". If I call navigate inside an onpressed button it works but not by just use it inside a condition. I am stuck. There is some…
luc
  • 1,301
  • 2
  • 14
  • 30
6
votes
1 answer

Flutter: implementing a search feature for data from a StreamBuilder with ListView

In my Flutter app I have a screen with all the users. The list of users is generated by a StreamBuilder, which gets the data from Cloud Firestore and displays the users in a ListView. To improve functionality I want to be able to search through this…
6
votes
2 answers

DropdownButton value is not updating after selecting values from DropdownItems. How to update default value with selectedValue?

DropdownButton Value does not update even after selecting different items. If default value is null then error message is shown and if I pass any default value (not null) then it never changes to other selected values. currentCategory is set as…
5
votes
2 answers

Flutter StreamBuilder removes old data while loading

Currently I have a StreamBuilder pulling data from Firebase for a group messaging app. I have a snapshot.hasData check to make sure that there is data before displaying the messages. The problem is that when setState rebuilds the widgets, it also…
Sam Scolari
  • 113
  • 1
  • 10
5
votes
4 answers

How do you check internet ACCESS continously in flutter.dart, not connection

how do you continously check internet access? I was able to show if wifi is connectected or mobile data. However, not all connection would have internet access. import 'package:connectivity/connectivity.dart'; var connectivityResult = await…
John
  • 101
  • 1
  • 1
  • 12
5
votes
2 answers

Flutter : How to make an http stream for StreamBuilder

Hello I'm trying to make my first social app with Flutter and I'm stuck. I would like to get my messages (in a conversasion between tow users) from my api. Not a probleme when I use Future and Future Builder, but I would like the message list to…
Unknow
  • 178
  • 2
  • 2
  • 12
4
votes
1 answer

Provider: How can I `notifyListener()` within a `StreamBuilder()`? It causes the error `setState() or markNeedsBuild() called during build`

I have a Provider model such as provider_model.dart: import 'package:flutter/material.dart'; class ProviderModel extends ChangeNotifier { final List _myList = []; List get myList => [..._myList]; void addItem(String item) { …
MendelG
  • 14,885
  • 4
  • 25
  • 52
4
votes
1 answer

Flutter Sound recording onProgress stream returning null

I want to visualize the recorded sound intensity in my flutter app using flutter_sound. I listen on the onProgress stream in a future builder which should return the value decibel when the recording is on. The issue is the stream always returns…
4
votes
0 answers

Flutter Blue Read Values from 2 Characteristics with notify

I'm a beginner in flutter and want to program a app with Bluetooth LE. I use flutter_blue. My App works if i only want to read the value of one characteristic. Now i need to read a second characteristic and that is the problem. I'm using a example…
4
votes
1 answer

(Flutter) StreamBuilder returns only null

I am trying to create a "CategoryStream" to update the UI based on the users choice. This is my stream: import 'dart:async'; class CategoryStream { StreamController _categoryStreamController = StreamController(); closeStream()…
Arveni
  • 68
  • 6
4
votes
1 answer

Flutter How to pass single data from Stream to another Screen and also got updated

I was making an app with a streambuilder that listen to firestore snapshot, and creating a list of item from it, and when i click one of item it would navigate me to new screen with the detail of the item and i could also modify some info of the…
Jolzal
  • 547
  • 7
  • 19
4
votes
1 answer

how to setState inside streambuilder

I have a streamBuilder inside a stateful widget that gets data asynchronously from the server. Additionally, I have a list that collects those data. StreamBuilder( stream: myStream.stream, initialData: initData, builder: (BuildContext…
MoneyBall
  • 2,343
  • 5
  • 26
  • 59
4
votes
1 answer

Flutter/Firebase - List has no instance getter 'documents'

I am trying to combine two firestore streams in my Flutter application. However when I try and implement the merged stream I get the following error: The following NoSuchMethodError was thrown building StreamBuilder(dirty, state:…
TJMitch95
  • 421
  • 3
  • 7
  • 23
1
2
3
42 43