Snackbar, Toast & Dialog in Flutter (Flash Package)

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 29

  • @alexandrufilipescu1301
    @alexandrufilipescu1301 3 роки тому +3

    Thanks! Hey Matt, I think that the people would like to see a tutorial on how you build your own apps or freelance, like the usual way that you do.

  • @mehulbisht9708
    @mehulbisht9708 3 роки тому +3

    So will you make tutorials on Flutter Web as well? It's not out of beta yet, but do you think it can be used to build websites for commercial use as well?

    • @markusandrew8360
      @markusandrew8360 3 роки тому

      A tip: watch movies on Kaldrostream. Been using it for watching a lot of movies during the lockdown.

    • @seangerardo66
      @seangerardo66 3 роки тому

      @Markus Andrew yea, been using kaldrostream for months myself =)

    • @daxtonjohan3020
      @daxtonjohan3020 3 роки тому

      @Markus Andrew yea, I have been watching on kaldroStream for months myself :)

    • @ramonjack6784
      @ramonjack6784 3 роки тому

      @Markus Andrew yea, been using kaldroStream for since november myself :D

  • @JuanLopez-oc9yv
    @JuanLopez-oc9yv 3 роки тому

    Thank you for sharing all of this, with every video of yours I discover new and more efficient way to do things with Flutter.

  • @pedrol4011
    @pedrol4011 3 роки тому

    Thank you so much Reso! You are the best!

  • @rifqibyy
    @rifqibyy 3 роки тому

    this is awesome, thanks! can you do bottom navigation?

  • @HH-uw3kw
    @HH-uw3kw 3 роки тому

    What theme are u using ??

  • @merickbao4033
    @merickbao4033 3 роки тому

    could you please tell us about your vscode theme.

  • @prajwalc5595
    @prajwalc5595 3 роки тому

    Thanks a ton man!! BTW I watched your entire series on TDD and Clean Architecture, It's a masterpiece out there on the internet. I have a question though, who should do the orchestration if a user action has to deal with more than one usecase? For example when a user hit a button I will have to make two API calls that is in two different repositories. In such a case what should be the approach? Should I create a single usecase that takes in two repositories and do the orchestration within the usecase OR should I create two usecases seperately and orchestrate the api calls sequentially in the bloc? Any feedback will be really helpful.

  • @kikalamuofficial5865
    @kikalamuofficial5865 2 роки тому

    Is this package still useful even when using Bloc Pattern?

  • @aytunch
    @aytunch 3 роки тому

    Matej, Hi thanks for bringing this package in to light. I have a question.
    I made a nice small custom widget which shows some live data from the server. I want to persist this widget on top of everything else just like a toast. I don't want it to disappear when we do pop route, push route, etc. Can I use this library for this need?
    If yes, should I create this widget with the toast above material app? Do I always need to pass the context? Or how should I go? I am using Blocs as state management. I always wanted to show a toast like widget from bloc instead of UI-bloclistener. Because it can appear at any random page, I dont want to put bloc listener to every page just for this purpose.
    Lastly, does using Overlay and OverlayEntries have a negative impact on UI performance? Should we avoid them in our designs when possible? I think overlay's live in a different place than the normal widget tree.
    Take care bro.

    • @ResoCoder
      @ResoCoder  3 роки тому

      You could use this library but I'd recommend you to use the Overlay widget which is used behind the scenes here.
      In fact, you might want to take a look at the flutter_portal package. It makes working with overlays much easier.
      Overlays don't have any real negative impact on the performance. They are really just a stack of widgets that usually wraps the whole MaterialApp - that's why individual OverlayEntries are shown above the whole app no matter where you navigate.

  • @h3w45
    @h3w45 3 роки тому

    Thanks for covering this.

  • @raulmabe4229
    @raulmabe4229 3 роки тому +1

    Hey I love your videos! You do a great work. However I think that snackbars are customizable by default. As everything is a widget you can insert a Row inside the content of a snackbar for example

  • @thevillageguy321
    @thevillageguy321 3 роки тому

    Thanks for neat and clean tutorial. What's the font you are using. IBM Plex?

    • @ResoCoder
      @ResoCoder  3 роки тому +1

      You're welcome! The font is Jetbrains Mono.

  • @namtranquang8081
    @namtranquang8081 3 роки тому

    What font is that?

  • @urielaispuro2125
    @urielaispuro2125 3 роки тому

    Awesome! I just found your channel and you're incredible, thank you for sharing your knowledge ♥️

  • @numanarif2597
    @numanarif2597 3 роки тому

    Awesome man, thanks

  • @ngocnghiale5717
    @ngocnghiale5717 3 роки тому

    I don't want to use Overlay so I have a way to replace it:
    //!Code
    FlashController? flashController; //!Edit 1
    showFlash(
    context: context,
    onWillPop: () async {
    flashController!.dismiss(); //!Edit 2
    return false; //True with Toast
    },
    builder: (context, controller) {
    flashController = controller; //!Edit 3
    return Flash.dialog(//!Your code);
    },);

  • @GabrielCosta-xr5vr
    @GabrielCosta-xr5vr 3 роки тому

    Missing more advanced content, but thank you for sharing this too!

    • @ResoCoder
      @ResoCoder  3 роки тому +2

      Advanced content will come at some point!

  • @berkcan3475
    @berkcan3475 2 роки тому

    its sooo stupid IMO, let me give an example: I want to make user log in, while user is logging in I want to show snackbar not dismissable not with ability to go back, if I use persistent:true it can dismiss via back button, if I use persistent:false then it can go previous screen via back button isnt there any dev maintaining this repo smart enough to make a back button handler instead of choose one of shitty paths ???