Questions tagged [flutter-streambuilder]
192 questions
1
vote
0 answers
What will be the correct approach in case of StreamBuilders in Flutter?
Let us say that I need access to by "categories stream" on a page. Now the page is modularised such that :
Widget/Page A:
build() {
subWidgetA,
subWidgetB,
subWidgetC,
subWidgetD,
}
Now, I need my categories streams inside subWidget A and…

Divyam Dhadwal
- 395
- 3
- 19
1
vote
0 answers
How to use any state management for my bluetooth app?
I am trying to use a connected bluetooth device on other pages, but I'm unable to do that. I tried to use the provider, but that did not work, parameter passing did not work either.
After testing, I am using the following
I made a class…

Mubashar Ali
- 11
- 3
1
vote
0 answers
Flutter: Convert future to stream to get realtime updates from API and rebuild widget
I'm learning flutter by building an app. I have a like button where I'm displaying the count of likes using a FutureBuilder like this :
FutureBuilder(
future: likeNotifier.getLikesCount(
postId: widget.postId,
),
builder:…

rawm
- 251
- 5
- 24
1
vote
1 answer
Adding ElevatedButton under or inside StreamBuilder
I want to add a button on the bottom of my page but i dont know how to add ElevatedButton inside or under StreamBuilder
I would also want to add a class in this page after the StreamBuilder
import…

Aliah Gapor
- 13
- 3
1
vote
0 answers
Riverpod - widget stays in loading state when listening to a streamProvider
I can't seem to get my ref.watch(mapProvider).when( to build the data case of my widget:
@override
Widget build(BuildContext context, WidgetRef ref) {
if (defaultTargetPlatform == TargetPlatform.android) {
…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
1
vote
2 answers
How to pass Stream to GroupedListView Flutter
I am currently working on the messaging section of my app. I am using a streambuilder and streams in conjunction with a GroupedListView so that the messages can be grouped according to date.
However, I am having some problems because the…

youcantgetridofmestackoverflow
- 49
- 2
- 12
1
vote
0 answers
StreamBuilder taking too long to update (or not updating at all)
I use firebase authentication in my app and I have a widget called AuthGate that the app launches as its home. In AuthGate there is just a StreamBuilder that listens to FirebaseAuth.instance.authStateChanges() and returns different screens depending…

Globe
- 514
- 3
- 17
1
vote
1 answer
How to get user single detail from firestrome using streambuilder in flutter
I am trying to build an app using Flutter and Firestore. When loading current user single filed using StreamBuilder to display it in a Text, I get the following error
════════ Exception caught by widgets library ═══════════════════════════════════…

Saqlain Abbas
- 25
- 4
1
vote
1 answer
How can I update my get function when stream changes state?
I am using flutter_blue_plus for getting bluetooth is on or off. I am getting results in log successfully. But in isOn function, I can't update automatically. What can I do? Do I have to use StreamBuilder in UI?
class BluetoothService with Logger {
…

Mevlüt Tosun
- 25
- 3
1
vote
0 answers
Flutter file download issue
My book download flutter application are downloaded file from api and read app itself but the issue is small size file are downloaded fully and read successfully but 250mb file are not downloading fully so can't read a book app throws error
Error…

Vijay
- 11
- 2
1
vote
0 answers
Is there a way to wait for one stream's data before listening to another stream that is dependent on the first
I rely on more than one stream for the data in my app. In this specific situation I listen to the first stream which is dependent on User UID (Firebase Auth) which I already have. But the 2nd stream needs something returned from the 1st…

Deen Gangen
- 41
- 5
1
vote
0 answers
Switch between streams flutter firebase
I have a class of complains in which there is a field of status. This status can be pending , inprogress, completed , rejected. In UI I have designed buttons to filter complaints on the basis of status.
The issue that I am facing is that when I…

Zia Ur Rehman
- 11
- 2
1
vote
1 answer
Change a stream in Streambuilder dynamically
I'm using StreamBuilder to show a group of elements from Firebase in a list. The problem is that I need to filter and update that list changing the stream from Streambuilder. I don't know who can I do that. I read about Streamcontroller and I tried…

deslarry
- 31
- 1
- 6
1
vote
1 answer
How can I receive data from firestore 2 collection using 2 streambuilder and Listview.builder?
I have used 2 streambuilder and listviewbuilder. But why this error is shown and I,m confused this code will work properly? Please, anybody have their answer?
I used streambuilder and inside it used ListView.builder. It means, firstly receives data…

Md. Yousuf Islam
- 11
- 1
- 3
1
vote
1 answer
Flutter - Stream Builder does not show any content in release apk, but works fine in debug apk
I am new to flutter. I have built the app using flutter and firestore. I am fetching the list of data using stream builder. Inside Stream builder, I have used ListView.builder() to showcase the content.
The problem is everything works fine in debug…

prax
- 11
- 3