Questions tagged [flutter-streambuilder]
192 questions
0
votes
0 answers
How to mock a Stream builder inside a ChangeNotifier Class?
I have been using StreamBuilders on each page of the app I am developing. The problem I am facing is the lag it causes while switching screens. I understand that stream automatically reads any changes made in the firebase and changes UI accordingly.…
0
votes
1 answer
why Map.from((snapshot.data! as Event).snapshot.value) is giving an error says "Event" is not a type
StreamBuilder(
stream: reffVehicles.child('users').orderByKey().limitToLast(10).onValue,
builder: (context, snapshot){
final listtiles = [];
…
0
votes
1 answer
does Flutter firebase auto paginate with stremBuilder?
I am using Firestore snapshots as a stream builder and loading widgets with listwiew builder. will it auto-paginate? does Flutter Firebase auto paginate with StremBuilder?
class twatter extends StatefulWidget {
const twatter({super.key});
…
0
votes
0 answers
why is asyncsnapshot.error always returning
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import '../components/grocery_item_tile.dart';
import…

Serhat GENÇ
- 7
- 2
0
votes
1 answer
Why does StreamController not work properly when initialized inside function
Hoping someone(s) can help explain to me why this happens cause it's not making sense to me and has been annoyingly taken days to figure out what was causing this issue.
The basic situation is when I define the StreamController globally it works…

Bernardin Dezius
- 114
- 7
0
votes
0 answers
Stream variable when use in Stream Builder return empty
I am currently working on a data table that has three text buttons that will decide the maximum number of rows to be displayed in real-time. The limitations (text buttons) are "5", "10" and "All". The initial solution that I can think of is to…

ramiannahwar
- 1
- 1
0
votes
0 answers
Appbar overlay on released version when using a streambuilder
Appbar is bugged on the released version only when i use a streambuilder inside the badgeContent on a Badge widget. It shows a white overlay on the appbar when i run the released version and it works just fine on the debug version.
appBar:…

maghraby
- 33
- 5
0
votes
0 answers
Flutter firebase Stream builder not satisfying conditions
My streamBuilder on my app is giving me problems. The problems (on the same screen) are different and I will show you what they are.
This is the stream
final uid = FirebaseAuth.instance.currentUser!.uid;
CollectionReference users =…

EBENEZER OCANSEY
- 3
- 2
0
votes
0 answers
Streambuilder state not changed when data changed on google map flutter
`I'm working on google map, my task is to draw polygons from firebase real-time database, using stream to change polygons while real-time database values affected, the data would change but Google Map not rendering on those changes.
stream…

Gokul P
- 1
0
votes
1 answer
RenderFlex error unsolved by shrinkWrap, SizedBox or Expanded
I am currently building an AlertDialog to show reviews for a specific dish.
I get the following errors:
The following assertion was thrown during performLayout():
RenderShrinkWrappingViewport does not support returning intrinsic
dimensions. Updated…

flutterfly
- 3
- 3
0
votes
1 answer
Firestore query with where and orderBy returning null when using in Streams in Flutter App
I am trying to get some document and sort them but when I am doing it with .orderBy it is returning null. If I use only .where and don't use orderBy, it is working fine.
I want to get some documents in a collection name 'expenses' sorted with…

YatharthDixit
- 3
- 1
0
votes
0 answers
how to make sort data using buttons with stream builder (to make filtrations )
I want to make filtration bar to filter the prices and the location. I am making a function at the end of the code that is checking wather the button is pressed or not to make retern the firebase filter.
import…

ISLAM IS LIFE
- 9
- 5
0
votes
2 answers
Why the snapshot.data.documents can't be accessed while getting messages from Cloud Firestore through StreamBuilder?
The snapshot.data.documents can't be accessed while getting messages from Cloud Firestore through StreamBuilder.
Code:
class MessagesStream extends StatelessWidget {
@override
Widget build(BuildContext context) {
return…

Samik Pandit
- 96
- 5
0
votes
1 answer
I want to get the total count of ratings to show average ratings from firestore but I am unable to get the results
Here is my code I want to get the total count of ratings to show average ratings from firestore but I am unable to get the results. please help me get the total of ratings.
Widget reviewPanel(_reviewsStream) {
return ExpandablePanel(
header:…
0
votes
0 answers
why i am recieving null at itemsnapShot present in FutureBuilder in news list tile i am getting output like "Still Loading Item 54621"
This is class where i have problem.i have checked api twice api recieving data properly but its not reaching to news list tile
'''
//News List Tile File
import 'package:flutter/material.dart';
import…

Devesh kharade
- 1
- 2