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...
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
@@thetechbrotherss hamna firestore sa data fetch kar liya hai ab Sara data Store document ka ander store hai apni apni id ka andr aab hum na Oss ko front pa bhi show karna hai or back pa bhi front ka mtlb jab uss element par click Karyn tu next page par la jay ab list tile ma tu title ka hi option hota hai aab hum aik time par aik hi chiz show kar wa sakhta hain aab ma na different chizayn show kar wani hai jasa address ho gaya phone number ho gaya title ho gaya back par plz help kar na
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!
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
@@thetechbrotherss mai India se hu but agar kabhi Pakistan aana hoga to to vo ana sirf Aapki vajah se hoga for meet the my favourite youtuber >>>>> Asif
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 snapshot) { if (!snapshot.hasData) { return CircularProgressIndicator(); } else { Map map = snapshot.data!.snapshot.value as dynamic; List 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'])); ^
Make full playlist on making responsive UI please sir
Ok
@@thetechbrotherss thanks look forward to it
Thanks alot brother.. I can't thank you enough
Subscribe and share with your friends
thank you bro. greetings from indonesian
subscribe, like and share with your friends
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...
becase data is coming in the forms of maps
in stream builder if we remove all the data then it will show error (type "null" is not a subtype of type "Map ") . so how can I solve this?
you need to handle the data for null like if their is no data handle it
sir why the values in the both methods is not showing on the same index on the UI
i didn't understood your question
Please also do make a video that how to connect UI of e-commerce app with firebase,
Same here 🤗
Already taught in second video of this playlist.
@@thetechbrotherss Actually his mean to say about make complete e-commerce app project on firebase
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
ap is tarhan krwa skty ho na
@@thetechbrotherss hamna firestore sa data fetch kar liya hai ab Sara data Store document ka ander store hai apni apni id ka andr aab hum na Oss ko front pa bhi show karna hai or back pa bhi
front ka mtlb jab uss element par click Karyn tu next page par la jay ab list tile ma tu title ka hi option hota hai aab hum aik time par aik hi chiz show kar wa sakhta hain aab ma na different chizayn show kar wani hai jasa address ho gaya phone number ho gaya title ho gaya back par plz help kar na
@@thetechbrotherss bro aap Skype use kar ta ho
its not displaying ...since we are using a scrollable
inside another ..since expanded is used no error is showimg ..what will i do?
i have handle everything please watch video carefully
can you retrieve image URL from the realtime database? Make a video please
go checkout the images video upload video in upcoming videos have taught the method.
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!
Dynamic is a variable that set it’s data type during run time
brother i got an error, type 'List' is not a subtype of type 'Map'. What's the Solution for this?
Please watch video carefully i have taught the solution brother
Sir, How to pass realtime data base values into List🙂
this is how you can do it
@@thetechbrotherss Thank you so much Sir❤️❤️❤️
Sir why are we using list.clear()
to clear the list else it will git duplicated
This method is not working for me it's redlines on snapshot
Restart the project and make sure you imported correct Pacakges
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
Not sure why this is happening with you
bro aap image ko firebase sa fetch karna bata dain ga with stream builder plz
Check video in this playlist where i taught how to upload and store in database
@@thetechbrotherss image ka phi wa hin par bata ya ho gaya
Please, is it possible to enable subtitles in yours videos?
I'm not sure about it if there is any auto generated
@@thetechbrotherss There is an option in youtube when you record your video.
thanks brother
subscribe and share with your friends
solution of the ""Map "" is
Map? map = snapshot.data!.snapshot.value as Map?;
if (map == null) {
return Center(child: Text('No data'));
}
List list = map.values.toList();
return ListView.builder(
itemCount: list.length,
itemBuilder: (context, index) {
return ListTile(
title: Text(list[index].toString()),
);
},
);
ok
@@thetechbrotherss mai India se hu but agar kabhi Pakistan aana hoga to to vo ana sirf Aapki vajah se hoga for meet the my favourite youtuber >>>>> Asif
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 snapshot) {
if (!snapshot.hasData) {
return CircularProgressIndicator();
} else {
Map map =
snapshot.data!.snapshot.value as dynamic;
List 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']));
^
Text k under List ko list kr do
End mein jo statement ha list linkhna ha apne List likha ha