Riverpod Tutorial 04 - Freezed: Unions and Data Classes

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • How you can use Freezed to enhance Riverpod (and your Flutter coding in general). This is a practical example of how to use Freezed, as well as a primer for those of you that are new to it.
    --
    Riverpod Tutorials and code:
    github.com/fun...
    --
    Check out my Flutter Animation and Performance course.
    Discounted link: bit.ly/funwith...
    Or use the promo code: FUN
    for a discount at checkout ($15): courses.funwit...
    --
    Join me on the socials.
    Twitter: / gordonphayes
    --
    Thumbnail photo:
    Photo by t j on Unsplash (unsplash.com/@...)

КОМЕНТАРІ • 23

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

    These are amazing videos keep up the great work!! Excited for your next riverpod videos regarding architecture and firebase integration.
    Definitely recommending this to my college friends doing flutter amazing explaination

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

      Sick thank you. More vids are on the way once I have time

  • @clll4870
    @clll4870 3 роки тому +5

    Thanks for the great video series!! Would you mind pointing me in the right direction or making a video on the app architecture setup that you use with riverpod & freezed?

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

    Best tutorial on freezed! Keep it up

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

    Great video! thank you so much! learnt alot.
    Quick question, why would i not rather stick with AsyncValue instead of creating my own unions?

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

      Never mmind, you answered my question two seconds later 😅

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

      Only create your own Unions if you want to create something custom.

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

      Whoops. Great!

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

    Great video series! I have a quick question. Can Riverpod be used with animations or are stateful widgets necessary?

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

      Technically yes, but I wouldn't. Use Riverpod for state you want to manage outside of your widgets. Animations are state that relate to the UI, keep them in your widgets

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

    thank you. practical

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

    Thanks for this tutorial. It was really helpfull. Can you do Riverpod with Firestore. Thanks

  • @7mada89
    @7mada89 3 роки тому

    Should I use Freezed instead of vscode extension (Dart Data Class Generator).

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

      Freezed gives a couple of bonus stuff (Unions, deep copy) that Dart Class Generator doesn't. But to each their own.

    • @7mada89
      @7mada89 3 роки тому

      @@FunwithFlutter Thanks for responding ❤

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

    wow! can you make more riverpod tutorials with firebase please

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

    flutter navigation 2.0 please 🙂

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

      That was a fast comment lol. Ugh I still need to wrap my head around Navigator 2.0. Seems like it's mostly needed for URLs.

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

      @@FunwithFlutter Actually I like your teaching style it helps me a lot. I was waiting for your new video (the only place I can reach you 😅) to ask for a video on new navigation. Take your time 😊whenever you can make a video.