Flutter Riverpod for State Management

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 13

  • @Outlines
    @Outlines 10 месяцев назад +2

    Unfortunately the website you used shut down their business and their website as well so I could only follow up to the 4 minute mark, there is no API page anymore.

    • @dan3f
      @dan3f 2 месяца назад

      have you found any similar api?

  • @dan3f
    @dan3f 2 месяца назад

    is there any similar API we can test? the one used was shutdown

  • @TheAbhidugar
    @TheAbhidugar Год назад

    Hi, thanks for the video.
    Why we use code generation feature? what are the benefits of it?

  • @wembleyleach
    @wembleyleach Год назад

    Awesome video on the standard Riverpod setup and how to use it with annotations 🙌🏾

  • @forktrader7870
    @forktrader7870 Год назад

    can you add tutorial with riverpod hooks?

  • @imgroot90
    @imgroot90 Год назад

    hi, i'm just a flutter beginner, i'm have question about why you need a wishlist.dart to export the path? what is this for? thank you.

    • @CreativeBracket
      @CreativeBracket  Год назад

      Hello. Having an export file allows us to have one place where our classes, functions etc can be exposed to other files. If we do not do that, then we will have to import those files directly, which increases the amount of imports we will have across the codebase. Hope that makes sense

    • @imgroot90
      @imgroot90 Год назад

      @@CreativeBracket got it, thank you sir

  • @timmanning9
    @timmanning9 Год назад

    Can there be more than one state management solution on the server? For instance, bloc and riverpod

    • @RandalLSchwartz
      @RandalLSchwartz Год назад +4

      I'm currently converting a mature project from provider to riverpod, and in every two hours I still have working code, after converting one or two of the providers to riverpod. So yes, multiple state management systems can interop, but since riverpod can do everything bloc does with less boilerplate and more flexibility, the eventual goal would seem to be a gradual migration to being fully riverpod.

    • @timmanning9
      @timmanning9 Год назад

      @@RandalLSchwartz thanks for your input

    • @CreativeBracket
      @CreativeBracket  Год назад +1

      My answer is pretty much similar to Randal's. You can use more than one state management solution but it's not beneficial in the long run since you would have to context switch between both approaches, which can be mentally taxing. I would probably not use bloc directly but rather the dart_frog framework which integrates the bloc framework.