Questions tagged [flutter-streambuilder]
192 questions
0
votes
1 answer
Flutter & firebase - StreamBuilder not loading
My code was working fine. As soon as I added isEqualTo, the app keeps on loading and loading.
I am guessing perhaps I do have to do something with RULES in FirebaseFirestore. Not sure though. And also I know nothing of rules.
StreamBuilder(
…

Nuaiman Ashiq
- 69
- 1
- 5
0
votes
1 answer
Listening to Stream doesn't get same result as StreamBuilder with Firebase
I'm using firebase and I have this:
Stream qs = FirebaseFirestore.instance
.collection("$mypath")
.orderBy(order)
.limit(10)
.startAfterDocument(lastDoc)
.snapshots();
When I pass qs to a…

SIMMORSAL
- 1,402
- 1
- 16
- 32
0
votes
1 answer
Flutter + Firestore chat .. Listview rebuilds all items
I'm trying to add chat functionality to my app (kind of similar to WhatsApp functionalities), using flutter and Firestore. The main structure on Firestore is to have 2 collections (I want the unread message count as well):
users: and each user will…

M.R.M
- 540
- 1
- 13
- 30
0
votes
0 answers
Flutter StreamProvider fails to update Widget state. How do I go around this?
I'm using a StreamProvider to capture changes that occur in Firestore and display them on the user homepage. When the user initially signs in or registers, they're directed to this homepage and expect to see their details, for which I use the…

Yash
- 67
- 5
0
votes
0 answers
In Flutter How to display result of StreamBuilder in Drawer
I have a StreamBuilder in my Widget body
body: RefreshIndicator(
onRefresh: () => _sheetDetailBloc.fetchSheetDetail(
widget.selectedSheet, widget.selectedSheetTitle),
child: StreamBuilder>(
…

vikasm
- 69
- 5
0
votes
1 answer
Just Audio Flutter Plugin - How to convert Duration from Stream listener to Integer?
I'm using Flutter's Just-Audio plugin to play an mp3 file fetched from a streambuilder in my app. The streambuilder returns the duration of the file which I need for the setClip function;
player.setClip(start: Duration(milliseconds: 0), end:…

Meggy
- 1,491
- 3
- 28
- 63
0
votes
1 answer
How to use StreamBuilder in FirebaseStorage to inform my App from changes in my Firebase Storage? In Flutter
Here is my challenge:
I'm using the following example from https://firebase.flutter.dev/docs/storage/usage/
to upload images to my FireBaseStorage from my phone gallery (which delivers me the String filepath-variable).
Future…

Ayrix
- 433
- 5
- 16
0
votes
1 answer
Flutter & Firebase: How to check if an item exists inside of an array within a Firebase document
I'm trying to waitUser(array) check exist value how can I?
// if waitUser array field exist 2 return text("this text") else return text("other text")
body: StreamBuilder(
stream: FirebaseFirestore.instance
.collection('events')
…

Crypto Miner
- 5
- 6
0
votes
1 answer
Flutter: StreamBuilder stream not updating
My StreamBuilder didn't refresh after changes to the stream, and also the stream does not update too, when fetching data from Firebase and store it to local SQLite database;
And here is my code for listen to data changes from Firebase and then write…

Ryan Wang
- 418
- 7
- 23
-1
votes
1 answer
How do I show notification for every new entry I get from Stream builder in flutter?
I am using stream builder for fetching api in my app, what I am trying to achieve is to get notification or print message in the console every time the stream gives a new entry. I have heard there are packages for notifications but I don't know…

MOBILES RECOVERY
- 25
- 1
- 6
-1
votes
1 answer
Is there any way to fetch the google sheet (gsheet) data in flutter and display realtime updates whenever there is any change in google sheet itself?
I am developing an application where a list is displayed according to the user input. The list is loading and getting displayed when the application is loaded and whenever the user inputs the data through the text fields(in the app) and the cells…
-3
votes
3 answers
How to convert firebase timestamp to datetime in flutter
I tried fetching timestamp data from firebase using stream and displaying it in a data table but the timestamp is the format (seconds=1560523991, nanoseconds=286000000) how to do I convert it to dd-mm-yyyy format. I tried parsing it using…

Ganesh Sivakumar
- 149
- 1
- 16