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

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.ย. 2022
  • In this video i will teach you how we can fetch list of data from firebase database using stream builder.
    Playlist: lnkd.in/dfwijFgd
    instagram: / thetechbrotherss
    join fb group: lnkd.in/dAWaFWtp
    Flutter Bootcamp 2022: lnkd.in/dVv_jy4W
    Road map: lnkd.in/dHF8yc68
    _____________/Connect On Social Media\____________
    ► linkedin:➜ / axiftaj
    ► Instagram:➜ / axif_taj
    ► Facebook:➜ / aaxiftaj
    ► Twitter:➜ / axiftaj
    ► GitHub:➜ github.com/axiftaj
    ► Hire me on Fiver:➜ www.fiverr.com/asif_taj
    =========================================
    flutter, connect firebase, firebase real time database, firebase tutorials, firebase authentication
    For business queries : axiftaj@gmail.com
    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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 52

  • @ashenniroshan1442
    @ashenniroshan1442 ปีที่แล้ว +1

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

  • @praneshpyarashrestha3
    @praneshpyarashrestha3 ปีที่แล้ว +1

    thanks brother

  • @pratiklukhi402
    @pratiklukhi402 ปีที่แล้ว +4

    Make full playlist on making responsive UI please sir

  • @zepidarmawantambunan428
    @zepidarmawantambunan428 ปีที่แล้ว +1

    thank you bro. greetings from indonesian

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      subscribe, like and share with your friends

  • @swagatbaruah522
    @swagatbaruah522 ปีที่แล้ว +1

    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...

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      becase data is coming in the forms of maps

  • @dhruvrajani5028
    @dhruvrajani5028 ปีที่แล้ว +1

    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?

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      you need to handle the data for null like if their is no data handle it

  • @talhasaysss
    @talhasaysss 7 หลายเดือนก่อน

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

    • @thetechbrotherss
      @thetechbrotherss  7 หลายเดือนก่อน

      i didn't understood your question

  • @cheswinraj9472
    @cheswinraj9472 5 หลายเดือนก่อน

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

    • @thetechbrotherss
      @thetechbrotherss  5 หลายเดือนก่อน

      i have handle everything please watch video carefully

  • @chiragmakwana9830
    @chiragmakwana9830 ปีที่แล้ว +1

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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Please watch video carefully i have taught the solution brother

  • @alicezuberg3233
    @alicezuberg3233 ปีที่แล้ว +1

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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      go checkout the images video upload video in upcoming videos have taught the method.

  • @foodxcooking4448
    @foodxcooking4448 ปีที่แล้ว

    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
      @thetechbrotherss  ปีที่แล้ว

      ap is tarhan krwa skty ho na

    • @foodxcooking4448
      @foodxcooking4448 ปีที่แล้ว

      @@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

    • @foodxcooking4448
      @foodxcooking4448 ปีที่แล้ว

      @@thetechbrotherss bro aap Skype use kar ta ho

  • @kno2843
    @kno2843 ปีที่แล้ว +1

    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!

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +2

      Dynamic is a variable that set it’s data type during run time

  • @Tech-Passion
    @Tech-Passion 11 หลายเดือนก่อน

    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
      @thetechbrotherss  11 หลายเดือนก่อน

      Not sure why this is happening with you

  • @syedarsalan7338
    @syedarsalan7338 ปีที่แล้ว +2

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

    • @ZarakTekken8
      @ZarakTekken8 ปีที่แล้ว +1

      Same here 🤗

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      Already taught in second video of this playlist.

    • @ZarakTekken8
      @ZarakTekken8 ปีที่แล้ว

      @@thetechbrotherss Actually his mean to say about make complete e-commerce app project on firebase

  • @erickmartinez7138
    @erickmartinez7138 ปีที่แล้ว

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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      I'm not sure about it if there is any auto generated

    • @erickmartinez7138
      @erickmartinez7138 ปีที่แล้ว

      @@thetechbrotherss There is an option in youtube when you record your video.

  • @foodxcooking4448
    @foodxcooking4448 ปีที่แล้ว

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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Check video in this playlist where i taught how to upload and store in database

    • @foodxcooking4448
      @foodxcooking4448 ปีที่แล้ว

      @@thetechbrotherss image ka phi wa hin par bata ya ho gaya

  • @shreyaspatil7862
    @shreyaspatil7862 ปีที่แล้ว +1

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

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Restart the project and make sure you imported correct Pacakges

  • @kennethyousuf5258
    @kennethyousuf5258 ปีที่แล้ว +1

    Sir why are we using list.clear()

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว +1

      to clear the list else it will git duplicated

  • @thushankalana4940
    @thushankalana4940 9 หลายเดือนก่อน

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

    • @thetechbrotherss
      @thetechbrotherss  9 หลายเดือนก่อน +1

      this is how you can do it

    • @thushankalana4940
      @thushankalana4940 9 หลายเดือนก่อน

      @@thetechbrotherss Thank you so much Sir❤️❤️❤️

  • @kailanirochellla2006
    @kailanirochellla2006 6 หลายเดือนก่อน

    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()),
    );
    },
    );

    • @thetechbrotherss
      @thetechbrotherss  6 หลายเดือนก่อน

      ok

    • @kailanirochellla2006
      @kailanirochellla2006 6 หลายเดือนก่อน +1

      @@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

  • @abdullahranjha6700
    @abdullahranjha6700 ปีที่แล้ว

    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']));
    ^

    • @thetechbrotherss
      @thetechbrotherss  ปีที่แล้ว

      Text k under List ko list kr do

    • @Tech-Passion
      @Tech-Passion 11 หลายเดือนก่อน

      End mein jo statement ha list linkhna ha apne List likha ha