Flutter Snackbars - The Improved Way with ScaffoldMessenger

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ค. 2024
  • Showing snackbars has always come with some hassle. Such as sometimes needing the builder widget to get the correct context. Well here is a way you can do it instead! Course to build a production-ready app 👉 robertbrunhage.com/course
    👉 Have additional questions, join Discord: / discord
    Want to support me?
    ♥ Patreon: / robertbrunhage
    ♥ BuyMeACoffee: buymeacoffee.com/robertbrunhage
    ♥ Paypal: paypal.me/robertbrunhage
    ····················································································
    You can find me on:
    ● Website: robertbrunhage.com
    ● Twitter: / robertbrunhage
    ● Discord: / discord
    ····················································································
    😎 Subscribe: bit.ly/2SUyRhx
    Source code: github.com/RobertBrunhage/flu...
    00:00 Overview
    01:03 The basics
    01:20 Show a Snackbar
    02:31 The benefits
    05:52 Hide and Remove

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

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

    Good demo 👏

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

    Great video!

  • @aravind.a
    @aravind.a 3 ปีที่แล้ว +2

    Awesome tutorial Robert. Keep rocking..

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

      Thanks Aravind!

    • @aravind.a
      @aravind.a 3 ปีที่แล้ว

      @@RobertBrunhage Is it a new Feature in flutter?

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

    Heyy Robert, would a fireflutter booking app implementation be possible for a future video :D?

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

    I just love the way u explain and try to make tutorial super compact :) keep up the good work.

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

      Glad you liked it!

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

      i dont mean to be off topic but does any of you know of a way to log back into an Instagram account??
      I was stupid lost my account password. I would love any assistance you can give me.

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

      @Cory Devon instablaster =)

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

      @Kash Cole Thanks for your reply. I found the site on google and Im trying it out atm.
      I see it takes quite some time so I will reply here later when my account password hopefully is recovered.

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

      @Kash Cole It did the trick and I now got access to my account again. Im so happy:D
      Thank you so much, you saved my ass :D

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

    Can you explain HttpServer and HttpClient and how we can effectively write the code using them

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

    what's the best way to design a snackbar?

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

    You still need the context to call the snack bar in the first place. Calling the snack bar from an async function in the state management is still kind of complicated as we need to keep track of the context changes throughout the app lifecycle. There is still a long way to go but it's good seeing Flutter evolve. Thanks for the video

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

    Superb. So is this an external package or is it going to be a part of Flutter widget library? Also do you know of any package which stays on top all other widgets like the snackbar but for any widget we choose as a child. I saw Remi's Portal package but could not make it work. maybe you can make a video on that.

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

      It will be part of flutter's ecosystem.

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

    Since I use getx state management, I don't have issues with this anymore

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

    this is amazingly easier, hope it is stable soon so I don't have to import a Toast package

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

    Make a video of how to use biometric security (fingerprint and faceid) in flutter!!!!

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

    Nice please where do you get those design for your videos

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

      I go in to figma and do trial and error 😊
      I have some design understanding so I just base it of that!

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

      @@RobertBrunhage ok sir

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

    I don't want to run android studio in my laptop. I need some help to setup android studio command line tools and run an emulator. I can't find any help in the documentation or internet on this topic.

  • @aravind.a
    @aravind.a 3 ปีที่แล้ว +4

    Robert, can you add a video to monetize the app using AdMob?

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

      Have that written down, but waiting for the native ads solution by google!

    • @aravind.a
      @aravind.a 3 ปีที่แล้ว +1

      @@RobertBrunhage Glad to know that and waiting for that video :)