Part- 13 Flutter fetch Firebase Realtime Database List with Stream Builder || CRUD Operation

preview_player
Показать описание
In this video i will teach you how we can fetch list of data from firebase database using stream builder.

______________/Connect On Social Media\_____________
=========================================

flutter, connect firebase, firebase real time database, firebase tutorials, firebase authentication

Thank you for watching my channel do give feedback about this video.

#flutter #firebase #firebasehindi #firebasetutorial #flutter #flutterdev #login_form #fluttering#firebase #dart #firebasedatabase #firebasehindi
Рекомендации по теме
Комментарии
Автор

Thanks alot brother.. I can't thank you enough

ashenniroshan
Автор

Make full playlist on making responsive UI please sir

pratiklukhi
Автор

thank you bro. greetings from indonesian

zepidarmawantambunan
Автор

Brother... If its possible could please explain...
the part where we used the Map.
Can't we fetch the data without the Map ?

Well.. I'm a little confused.. by its use...

swagatbaruah
Автор

in stream builder if we remove all the data then it will show error (type "null" is not a subtype of type "Map<dynamic, dynamic> ") . so how can I solve this?

dhruvrajani
Автор

brother i got an error, type 'List<Object?>' is not a subtype of type 'Map<dynamic, dynamic>'. What's the Solution for this?

chiragmakwana
Автор

Holy moly, it took me forever to got this running :(
Thanks for the video!!!

I still do not understand why it is necessary to write "as dynamic" for the map but that helped me to fix it!

Thanks!

kno
Автор

its not displaying ...since we are using a scrollable
inside another ..since expanded is used no error is showimg ..what will i do?

cheswinraj
Автор

can you retrieve image URL from the realtime database? Make a video please

alicezuberg
Автор

sir why the values in the both methods is not showing on the same index on the UI

talhasaysss
Автор

Bro I followed your whole process and data displayed Successfully.. But when i clicked on this tab again to display the data.. it is showing error: Bad State Stream has already been listened... Kindly tell the solution. Thanks

Tech-Passion
Автор

asif nahi agr ham na stream builder ma different data show kar wana hu mtlb hamara pass do chiz huti hain list tile ma title or subtitle agr hum different values show kar wani hu

foodxcooking
Автор

Please, is it possible to enable subtitles in yours videos?

erickmartinez
Автор

bro aap image ko firebase sa fetch karna bata dain ga with stream builder plz

foodxcooking
Автор

Please also do make a video that how to connect UI of e-commerce app with firebase,

syedarsalan
Автор

This method is not working for me it's redlines on snapshot

shreyaspatil
Автор

Sir, How to pass realtime data base values into List🙂

thushankalana
Автор

solution of the ""Map<dynamic, dynamic> "" is
Map<dynamic, dynamic>? map = snapshot.data!.snapshot.value as Map<dynamic, dynamic>?;

if (map == null) {
return Center(child: Text('No data'));
}

List<dynamic> list = map.values.toList();
return ListView.builder(
itemCount: list.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(list[index].toString()),
);
},
);

kailanirochellla
Автор

Bro I have an error can you help me plzz.
I already watched your video 3 times but I don't know how to solve this error

Expanded(
child: StreamBuilder(
stream: ref.onValue,
builder: (context, AsyncSnapshot<DatabaseEvent> snapshot) {
if (!snapshot.hasData) {
return CircularProgressIndicator();
} else {
Map<dynamic, dynamic> map =
snapshot.data!.snapshot.value as dynamic;
List<dynamic> list = [];
list.clear();
list = map.values.toList();
return ListView.builder(
itemCount: snapshot.data!.snapshot.children.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(List[index]['title']),

);

});
}
},
)),

Error 👇


: Error: The operator '[]' isn't defined for the class 'Type'.
lib/post_screen.dart:62
- 'Type' is from 'dart:core'.
Try correcting the operator to an existing operator, or defining a '[]' operator.
return ListTile(title: Text(List[list]['title']));
^

abdullahranjha