Moving from setState to Riverpod in Flutter Part 1

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

КОМЕНТАРІ • 28

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

    Thanks man for the vid 🔥

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

    I'm just looking for a way to manage state. I've tried bloc which I didn't like. Riverpod looks much more promising. This video definitely helped.

  • @dasaintgray
    @dasaintgray 3 роки тому +4

    Thank you so much, i really appreciate your work, it helps me a lot on my current project. Keep up the good work Master....

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

    Great in depth, and to the point video!

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

    Thanks man,
    Finally i found how to create and use StateNotifier effectively from this video
    thanks a lot for this 🤞

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

    Great video. simply explained

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

    Very nice tutorial! Thank you.

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

    Thank you! Finally understood the basics thanks to this video! Now I can build my first app with the Future provider :)

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

    Good work.thank you😀

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

    pls part 2
    thaaaaankssss !!!

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

    26:30 they have changed something in the Matrix or just editing error😅

  • @АндрейЖеребцов-у7й
    @АндрейЖеребцов-у7й 3 роки тому +1

    Hello. Very useful video. Is it possible to make global provider (for example: when user tap on listview item, this value i want to show on every further screen. I tried make global provider inside OnTap method, but a i can't get access to it in another screen anyway )in one screen and get it's value on another screen? P:S: Sorry for my english )

  • @ani-singh
    @ani-singh 2 роки тому +2

    In case userList is not working, add "as List" to userList-
    final userList = ref.watch(userListProvider) as List;

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

      awesome! my problem is solved.thank you so much

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

    thanks a lot for this amazing tutor. please how can someone use a boolean with either StateProvider or StateNotifierProvider, i have tried something like this "final isPro = StateProvider((ref) => false);" and tries to watch like this " bool test = watch(isPro);". . . so i got the error. "The argument type 'StateProvider' can't be assigned to the parameter type 'ProviderBase

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

    Need more tutorial on flutter_riverpod.
    Thank you.

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

      soon

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

      @@TheFlutterFactory hope you will share more series flutter_riverpod very soon and we are excting too much❤️

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

    Your use of context.read() early in the screencast (around 8:30) to get the Cheetah Coding value is probably misleading. If the provider of that value ever changes the value, your view would *not* be updated. It should have used a "watch" instead. Remi has commented on this "fear of watch" behavior, even referencing it in the official docs.

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

      For a constant value, it's ok here since the output will be the same. I get your point though. Old habits from Provider.

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

      I appreciate all your input on this. I know you've been a big advocate for RiverPod online.

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

    i love youuuuuuuuuuuuuu

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

    Weird, when I restart the application, it shows me this instead
    Restarted application in 278ms.
    flutter: Home rebuilding...
    flutter: UserList rebuilding...
    flutter: Home rebuilding...
    flutter: UserList rebuilding...
    I follow your video step by step, any idea?

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

      I didn't optimize for rebuilds. That was my fault. I was too focused on the riverpod funcationality itself. One thing to note is that watching a provider at the top of your build function will rebuild the entire widget (and any child widgets)

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

    Finally figured out "Why doesn't it work when I try it?" There are breaking code changes between the version of riverpod in the video (mid 2021) and v1.0.0 which came out in August 2021. It's almost impossible for video tutorials to stay up-to-date in the flutter world. Poor guy now has the choice: Reshoot the video so that it is once again a top tutorial for this package, or simply accept that it's "mostly correct, but won't actually run" if you install the latest version of riverpod.

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

    github link error

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

      Thanks for letting me know. I just corrected the link