Questions tagged [flutter-streambuilder]
192 questions
0
votes
1 answer
Flutter, display text if firebase data is empty
I am fetching data from firebase and displaying it on screen, initially, firebase data will be empty so, I wanna display the textPress + to add data. I tried doing it using if conditionsnapshot.data!.docs ==null but didn't work but it didn't work.…

Ganesh Sivakumar
- 149
- 1
- 16
0
votes
1 answer
Convert ListView into LIstView.builder in Flutter
I want to convert this ListView into ListView.builder, but somehow I could not figure out how I could do it. Any help would be greatly appreciated.
ListView(
children: snapshot.data!.docs.map((doc) {
final dynamic data = doc.data();
return…

Hashan Ranasinghe
- 33
- 1
- 6
0
votes
1 answer
Flutter, Stream prints null even if there is data in firebase
I tried printing firebase data using stream, but instead of the data I got this in terminal " [ ] ". This means the data is null. But there is data in firebase, how do I solve this problem.
firebase's data
stream builder
StreamBuilder(
…

Ganesh Sivakumar
- 149
- 1
- 16
0
votes
1 answer
Why am I getting an 'type 'Null' is not a subtype of 'String'?
I am struggling with getting the data from my 'Firebase'.
The 'print(mUsers)' are getting me the users from 'Firebase', so it is working up to that point. So I think my problem is with this: 'final users = UserModel.fromRTDB(Map

TB AS
- 27
- 7
0
votes
1 answer
StreamBuilder that waits for a stream on a future to emit
return ref.watch(findStoreProvider).when(
data: (store) {
_store = store;
return _map;
},
error: (error, stackTrace) => Text(error.toString()),
loading: () =>…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
0
votes
1 answer
Pushing a value to a StreamProvider?
I have a Stream object that is a listener of a signed in user from a database reference (Firestore). I'm using it in a StreamProvider so that my app can listen to signals for users signing in or out.
There's a specific event that (email verified)…

user6118986
- 341
- 2
- 15
0
votes
1 answer
Flutter stream deletion issue
I am working on Flutter application that uses Firestore. I have shown my documents in app with list view. I can update the documents and it appears immediately in app thanks to Flutter stream. However, I'm having an issue when I'm deleting a…

Asif Jafry
- 13
- 4
0
votes
2 answers
How to use get firebase data to StreamBuilder without Listview
I need to show my firebase data in deference places. But in the same page.
In every tutorial I followed they use Listview and I need to know there is another way to get data without using the list view

Dineth Siriwardana
- 75
- 5
0
votes
0 answers
Combine two stream-queries in flutter
I want to create a streambuilder to download multiple user-profiles from firebase. But to know which users are needed I have to get the user-ids at first, these are stored in an array. So I created a method to download the array and after this is…

beax07
- 11
- 3
0
votes
2 answers
Flutter, stream builder returns null
I tried getting input(string) from the user using textfield, adding the input in stream, and printing the string on a different screen, but instead of the string stream builder is printing null, I understood, it's because stream doesn't have any…

Ganesh Sivakumar
- 149
- 1
- 16
0
votes
2 answers
Edit User Profile Page and Profile Picture. Using Real-Time Database flutter
I am trying to pull user data from my UserProfileBrowse Data model and display it on my user profile edit page. Including the image. I also want to update the data into my real-time Database.
THIS IS MY DATA MODEL
class UserProfileBrowse {
…

akshit kanwar
- 45
- 1
- 5
0
votes
1 answer
Real time data type issue in flutter
If I receive real-time data, sometimes the type is List , and sometimes the type is Map, and on each type, I want to perform different operations; how can I differentiate them?

cys
- 1
- 2
0
votes
2 answers
How can I convert FutureBuilder code to StreamBuilder?
I am trying to get data from Firestore and pass that data to screen using stream. I have done this using FutureBuilder, this solution works as followed, but I need to use StreamBuilder Can anyone help me find the problem?
Future
- >…

Muhammed Akar
- 11
- 3
0
votes
1 answer
How to remove items from a list (Dart) | Firebase rtdb
I have a list that stores items that I don't want to display as part of my StreamBuilder, ListView. This list retrieves its information from a firebase rtdb.
I use a StreamBuilder to populate the ListView, and then I use a for-loop to try and…

callMe_whatever
- 71
- 1
- 2
- 12
0
votes
1 answer
Flutter StreamBuilder Refresh Screen with updated list data from API
I am trying to convert my app to use a streamBuilder periodically of three seconds.
however, what I have now ends up with the error.
Bad state: Stream has already been listened to.
Note that I am using two list views on the screen to display active…

Riley-Howley
- 67
- 2
- 12