Adding Images Stored in Firebase Storage to Our Flutter Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

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

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

    You mentioned minor things that worth a fortune. Clear and precise..
    Love it.. Liked and Subbed in case this Thanks isn't enough..

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

      Thanks Shasiru!

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

    that keyboard tho. niceee

  • @sakibshaikh3447
    @sakibshaikh3447 2 ปีที่แล้ว

    Thanks. This works👍👍

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

    Always the best ❤️❤️❤️🎉🎉🎉🙏🏻🙏🏻
    Thankyou so much

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

    I uploaded an image on firebase storage, but the image appears on a white screen in the image.

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

    Could you please explain why did the FireStorageService class extend the ChangeNotifier class? btw, Thanks for the great tutorial.

    • @logicgates8944
      @logicgates8944 2 ปีที่แล้ว

      same question here; especially that he didn't notify listeners and use provider for state management

    • @ramadhanputra6391
      @ramadhanputra6391 2 ปีที่แล้ว

      @@logicgates8944 thats is because that is the same pages

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

    great! thank you!

    • @BleylDev
      @BleylDev  4 ปีที่แล้ว

      Glad you liked it!

  • @delyaralo5720
    @delyaralo5720 2 ปีที่แล้ว

    my friend your video is very usefull for me but i have question what abut if i have directory contain some images how can i adding all of image in my flutter app

  • @nykse
    @nykse 4 ปีที่แล้ว

    Usefull Thank You!

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

    Hey man, thanks for the video. Are you going to do part 11 with submitting to the app store? I'm curious as to what changes need to be made for it to be accepted.

    • @BleylDev
      @BleylDev  4 ปีที่แล้ว

      I've got a video done for submitting to app store, just haven't edited it quite yet. If you have any specific questions on publishing a Flutter app to the app store message me on discord and I can answer them in the meantime

  • @kishanyadav-wj9gu
    @kishanyadav-wj9gu 4 ปีที่แล้ว

    I am working on some project in flutter and I am a beginner so please help to retrieve the pdf file which is store in firebase.

  • @jacobmiller38
    @jacobmiller38 3 ปีที่แล้ว

    I have something similar, but with post backgrounds instead of avatars. They are large images, but take a long time to load and use lots of memory. Is there anything I could do?

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

      Try utilizing the CachedNetworkImage package. It’ll load photos as they render. Also if you can, simply host your photos somewhere and use a link instead of the actual photo in your app with that package so it won’t use up so much memory

    • @jacobmiller38
      @jacobmiller38 3 ปีที่แล้ว

      @@BleylDev it’s definitely better. There are about 20 images and will all be seen by the user on a variety of screens. Would it make sense to prebuild the list of images widget on initial launch?

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

      @@jacobmiller38 I don't think so, as you will be forcing things to load that the user might not actually even come across. If these are images you know will be seen though and feel it's necessary to the UX of the app, then it might be worth doing that.

  • @goziem
    @goziem 2 ปีที่แล้ว

    Thanks a lot. But I get a runtime error at this part:
    child: snapshot.data
    The error is as follows:
    The argument type 'Object' can't be assigned to the parameter type 'Widget?'.

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

      Without looking at your code I won’t know for sure, but chances are if you’re using a newer version that some of the stuff in this video is deprecated and needs to be refactored. They have excellent documentation for FlutterFire now that you can Google and find easily

    • @youssefsarhan2063
      @youssefsarhan2063 2 ปีที่แล้ว

      same problem did u fix it ?

    • @terryrees7218
      @terryrees7218 2 ปีที่แล้ว

      Try "child: snapshot.data as Image, " - it worked for me

  • @섀플리
    @섀플리 4 ปีที่แล้ว

    Are you going to continue to make tutorials about how to show the other avatar options as you showed in this video so that users can pick and save one of them?

    • @BleylDev
      @BleylDev  4 ปีที่แล้ว

      I was planning on it. I was going to do one last video on that playlist to finish hooking things up and then showing App Store submission

    • @섀플리
      @섀플리 4 ปีที่แล้ว +1

      @@BleylDev Good. I hope to see that soon :)

  • @chinnifood9331
    @chinnifood9331 3 ปีที่แล้ว

    I followed all steps in your video. Shows no error. But image is not displaying. I gave exact image in firestore. I dont why image is not displayed

    • @KennethPalamara
      @KennethPalamara 3 ปีที่แล้ว

      did you ever resolve this? I'm having the same issue

    • @BleylDev
      @BleylDev  3 ปีที่แล้ว

      This is likely due to differences between versions of the firebase packages. I’ll probably do this same tutorial again with updated package versions in the near future.

    • @chinnifood9331
      @chinnifood9331 3 ปีที่แล้ว

      @@KennethPalamara yes

    • @trf8749
      @trf8749 3 ปีที่แล้ว

      @@chinnifood9331 how did you fixed that?

  • @swatithakrar5444
    @swatithakrar5444 3 ปีที่แล้ว

    sir, thanks for the video . it's really helpful to me . will you help me or guide me for my query ? I want multiple images from firebase storage to the app using for loop in this code but I don't know how to use for loop in this code. please help me...!!!'

    • @enes5111
      @enes5111 3 ปีที่แล้ว

      did you learn how to do it

    • @swatithakrar5444
      @swatithakrar5444 3 ปีที่แล้ว

      @@enes5111 yes, A good solution could be store the urls on Firestore so you can query the url of the images you need and with a builder paint the images (snapshots) .
      it works for me.

    • @enes5111
      @enes5111 3 ปีที่แล้ว

      ​@@swatithakrar5444 sorry .I cant make.I added ımage in firestore, how to get ımage ı dont know.can you share the example code

    • @swatithakrar5444
      @swatithakrar5444 3 ปีที่แล้ว

      now you have to copy url and store it on cloud and then ,
      Firestore.instance.collection('collection name').document('document name if needed').snapshots();
      if it works for you or not, let me know

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

      @@swatithakrar5444 finally I made it. first I created a show data widget => class GonderiGosterme extends StatelessWidget {
      String baslik;
      // String burger;
      GonderiGosterme({
      @required this.baslik,
      // @required this.burger
      });
      @override
      Widget build(BuildContext context) {
      return Expanded(
      child: Container(
      width: 400,
      height: 400,
      child: Stack(
      children:[
      ClipRRect(
      borderRadius:BorderRadius.circular(8),
      child:Image.network(
      baslik,
      fit:BoxFit.cover,
      width: MediaQuery.of(context).size.width,),
      )
      ]
      ),
      ),
      );
      }
      }
      after I accessed the database => Widget gonderiListesi(){
      return Container(
      child:Column(
      children:[
      StreamBuilder(
      stream:FirebaseFirestore.instance.collection("mutfak").snapshots(),
      builder:(context, snapshot){
      if(snapshot.hasData){
      return ListView.builder(
      itemCount: snapshot.data.documents.length,
      shrinkWrap: true,
      itemBuilder:(context,index){
      DocumentSnapshot documentSnapshot = snapshot.data.documents[index];
      return GonderiGosterme(baslik:documentSnapshot["baslik"],);
      },
      );
      }
      }
      )
      ]
      )
      );
      }
      I access data in the simplest way. Thank you so much for your help

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

    Kindly provide Source Code...
    Thank you

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

      I will check for that. This is a fairly old video however, so I can't be sure that I'll be able to locate the repo / I might have already deleted the repo.

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

      @@BleylDev Ok no problem.
      Thank You

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

    github link?

  • @__sagar_shah__591
    @__sagar_shah__591 4 ปีที่แล้ว

    the code dose not work!!! any help !!??

    • @BleylDev
      @BleylDev  4 ปีที่แล้ว

      If you don’t use the same package version as seen in the video, it will break. This has since been deprecated. See more recent documentation for updated changes