Flutter Tutorial - Riverpod - 1/3 The Complete Guide For Providers

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

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

  • @HeyFlutter
    @HeyFlutter  2 года назад

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/riverpod_providers_example
    Riverpod Website: riverpod.dev/docs/getting_started/
    Riverpod - Notifiers Tutorial: ruclips.net/video/vD-I1ARIMnk/видео.html
    Riverpod - Modifiers Tutorial: ruclips.net/video/7h2BrtK8Bpg/видео.html
    Riverpod vs Provider - Reso Coder: ruclips.net/video/atwWbkBdepE/видео.html
    Provider Tutorial (Todo App): ruclips.net/video/kN9Yfd4fu04/видео.html
    Sponsor:
    Invoice Ninja Plugin: pub.dev/packages/invoiceninja
    Invoice Ninja App: www.invoiceninja.com/mobile/

  • @johnjamesflashman6856
    @johnjamesflashman6856 3 года назад +12

    Thank you, I have spent a couple of days watching other tutorials which only muddied the water, in 20 minutes you made it perfectly clear.

  • @congtoannguyen1940
    @congtoannguyen1940 3 года назад

    Best Riverpod tutorial ever

  • @stevenlevittt
    @stevenlevittt 3 года назад +2

    This was the best tutorial on Riverpod

  • @quangle5701
    @quangle5701 3 года назад +2

    This is an excellent and complete tutorial about Riverpod providers. The video is concise, examples are simple to understand the core concept without any distraction. Thank you very much.

  • @amirankurtanidze6966
    @amirankurtanidze6966 3 года назад

    Thank you Johannes

  • @pranthonyaquino
    @pranthonyaquino 3 года назад +3

    I'm using getx lately but I'm learning riverpod too, great explanation, thanks!

  • @sayyidj6406
    @sayyidj6406 2 года назад

    this man channel deserved 1 mil subs

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks, for your support, Sayyid J! 🙂

  • @thomasmabika7291
    @thomasmabika7291 4 года назад +1

    the consistency...is greatly appreciated.

  • @wesleybarnes5376
    @wesleybarnes5376 3 года назад +4

    I appreciate the video, thanks a lot, clean and simple. I am actually quite excited about this package. And I want to see more of your videos. Do you mind saying why you would still use Provider if not Riverpod?

    • @HeyFlutter
      @HeyFlutter  2 года назад +2

      Thank you, Wesley! 🙂 There is no good or better, take the state management that you like the most. Personally, for projects, I use Redux :)

  • @althafaralijaffarali1803
    @althafaralijaffarali1803 4 года назад

    Hurray!! 100th video bro 😁🔥. Waiting for the upcoming parts.

  • @S_.H._C
    @S_.H._C 2 года назад

    자막 제공해 줘서 정말 감사합니다. 구독 과 좋아요 누루고 강좌 시청 했습니다.

  • @bariscelebi701
    @bariscelebi701 2 года назад

    You explained very well, I like your videos thanks Johannes Milke 💯

  • @rohansaraswat3740
    @rohansaraswat3740 4 года назад

    Amazing video, Waiting for the next one.

  • @hawkybae
    @hawkybae 4 года назад

    Looking forward to the next parts! :)

  • @TheBadFred
    @TheBadFred 4 года назад +2

    I personally use the "controversial" GetX (Obs) with CetX_cli package, which helps with structure, routes, toasts etc. .

  • @benyameenashraf3142
    @benyameenashraf3142 3 года назад

    Excellent work

  • @lbarq
    @lbarq 3 года назад

    Great video, congratulations, and thanks

  • @im_parth
    @im_parth 3 года назад

    Cool stuff. Subscribed right away :)

  • @marufhassan634
    @marufhassan634 2 года назад

    Please make a Riverpod 2.0 video, this video has a lot of stuff that is depriciated.

    • @HeyFlutter
      @HeyFlutter  2 года назад +1

      Thanks for the idea, Maruf Hassan! 🙂 I have added it to my list of ideas for future videos!

    • @leoingson
      @leoingson 2 года назад

      @@HeyFlutter +1
      It could contain riverpods migration tool.

  • @peterwetherall2623
    @peterwetherall2623 3 года назад +2

    HI, great video, but I can't understand one thing:- in the stream provide example, how is count getting incremented using (count) => '$count' in the streamProvider?

    • @peterwetherall2623
      @peterwetherall2623 3 года назад +2

      @@HeyFlutter Got it thanks! I hadn't realised periodic both triggers the event and is responsible for doing the increment. I was thinking there was some sort of count function I coudln't see that was doing that.

    • @HeyFlutter
      @HeyFlutter  2 года назад +1

      Thanks, Peter! 🙂 As mentioned at 11:20 a Stream will automatically increment the count variable by 1 every 400 milliseconds. For more details check out the documentation: api.dart.dev/stable/2.10.5/dart-async/Stream/Stream.periodic.html

  • @samgamer3530
    @samgamer3530 3 года назад

    excellent content, thanks for this.

  • @kemids2842
    @kemids2842 4 года назад

    please create more tutorials about Riverpod.

    • @HeyFlutter
      @HeyFlutter  2 года назад

      You find the other Riverpod parts here:
      2. Riverpod Tutorial: ruclips.net/video/vD-I1ARIMnk/видео.html
      3. Riverpod Tutorial: ruclips.net/video/7h2BrtK8Bpg/видео.html

  • @ezone2726
    @ezone2726 4 года назад

    Thank you so much🙏🏽🙏🏽
    Finally and finally
    Awesome tutorial👌👌

    • @ezone2726
      @ezone2726 4 года назад

      @@HeyFlutter if possible make tutorial on flutter_riverpod with the widget of checkbox, alertdialouge box, textfield.🙏🏽🙏🏽

  • @web3tel
    @web3tel 4 года назад +2

    can you please expand on "not recommended" regarding using provider.state++ at ~ 7:10 in this video. What potential issue may it cause and also if it is a real issue is there way to get complier diagnosing it as an error? . Thank you.

    • @HeyFlutter
      @HeyFlutter  2 года назад

      You can find more information about this issue here: riverpod.dev/docs/concepts/reading/#contextreadmyprovider
      To sum it up - using provider.state++ is not a good thing to use because it is not efficient since the button will always rebuild itself when the state changes. This inefficiency results from the watch method call which listens to state updates instead of reading the state once with context.read! Therefore it is not recommended to modify the state inside of onPressed or other callbacks with the watch method!

    • @leoingson
      @leoingson 2 года назад

      @@HeyFlutter So this is a use case for "use read if you know what you are doing"? Else watch() is recommended.

  • @50170937z
    @50170937z 4 года назад

    thank you so much, just in time i need it.

  • @hectorprx
    @hectorprx 4 года назад

    Very Nice, Thanks

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

    Thank you !!

  • @amir146
    @amir146 3 года назад

    How to change the value of ScopedProvider in the run time ?
    btw your videos are amazing

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks Amir! 🙂You could f.e. combine it with other providers over the ref parameter within your ScopedProvider. Simply watch the end of THIS tutorial where I show how to combine providers: ruclips.net/video/8H3bwxxla4Y/видео.htmlm14s

  • @ChuckyMasterDF
    @ChuckyMasterDF 3 года назад

    Hi Johannes... Is Riverpod better than GetX ?

    • @HeyFlutter
      @HeyFlutter  2 года назад

      This is more like a preference - there is no right or wrong, personally my choice is Redux, Provider or Riverpod.

  • @walker5555ful
    @walker5555ful 4 года назад

    i need this thank you master :D

  • @sachinrajput9491
    @sachinrajput9491 2 года назад

    if you take consumer widget at top then whole build method is refreshed then whats the difference between setstate and riverpod if whole method is rebuilt.

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thank You Sachin Rajput! Follow this link: medium.com/flutter-community/riverpod-a-deep-dive-on-the-surface-e12a0559bcf5
      I hope you will get your answer 🙂

    • @sachinrajput9491
      @sachinrajput9491 2 года назад

      @@HeyFlutter ok thanks

  • @flutterfix4628
    @flutterfix4628 2 года назад +1

    Please Sir, Make a video on go_router.
    thank you.

    • @HeyFlutter
      @HeyFlutter  2 года назад +2

      Thanks for sharing idea, Flutter Fix! 🙂

    • @leoingson
      @leoingson 2 года назад

      +1

  • @faheemahmadofficial7701
    @faheemahmadofficial7701 4 года назад

    @Johannes Milke Web and mac os app too!! Also please can you give a look at UNO platform it seems to rival android and has more to ofer please do see and maybe vidoe on it please

  • @findsarfaraz
    @findsarfaraz 3 года назад

    In stream builder if you want to list all number as widget as stream is received. how to do that.

    • @HeyFlutter
      @HeyFlutter  2 года назад +1

      Thank You sarfaraz ahmed! Follow this link: stackoverflow.com/questions/62639723/can-a-streambuilder-return-listwidget
      I hope you will get your answer 🙂

  • @arnaudduquenoy2061
    @arnaudduquenoy2061 3 года назад

    Sooooooooo good ✌️

  • @АлександрИванов-ю8с8г

    you are awesome!

  • @himesh_89
    @himesh_89 4 года назад

    Thank you 🙏

  • @EricPLMobileDeveloper
    @EricPLMobileDeveloper 3 года назад

    How to restart the stream timer in StreamProviderPage ?

    • @EricPLMobileDeveloper
      @EricPLMobileDeveloper 3 года назад

      @@HeyFlutter i wish to know the way like yours,in riverpod streamprovider

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thank you, Eric PL! You could learn more about to restart the stream timer here: stackoverflow.com/a/54611581

  • @TheBadFred
    @TheBadFred 4 года назад

    What it is so helpful about this and most likely the next ones too, that it is very hard to read the documentation of the author. It is very confusing.

    • @TheBadFred
      @TheBadFred 4 года назад

      @@HeyFlutter Another interestig Video is made by Robert Burnhage ruclips.net/video/3eOn4CtO5hg/видео.html

    • @HeyFlutter
      @HeyFlutter  2 года назад

      1. I stated the advantages of Riverpod right at the beginning 0:12
      2. Also make sure to watch the next part of this riverpod tutorial. There it will become even more clear for you what the advantages of riverpod are
      3. For more details on why to use Riverpod over f.e. Provider I referred at 1:00 to Reso Coders video which you can find here: ruclips.net/video/atwWbkBdepE/видео.html

  • @bashvim
    @bashvim 2 года назад

    ScopedProvider is now removed. All providers can now be scoped.

  • @muhammadeshonjonov8758
    @muhammadeshonjonov8758 8 месяцев назад

    Русскоязычные также смотрят это видео ?

    • @HeyFlutter
      @HeyFlutter  8 месяцев назад

      Thank you, @muhammadeshonjonov8758! 🙂

  • @gopinathp4953
    @gopinathp4953 2 года назад

    Hi..., I have been using 'getx' for past 6 months. Now I decided to switch to Provider or Riverpod (Because of the controversy on Getx, I still like it). Please tell me which one can I choose?.

    • @gopinathp4953
      @gopinathp4953 2 года назад

      @@HeyFlutter Ok thank you. Do you have any other suggestion apart from riverpod?

    • @HeyFlutter
      @HeyFlutter  2 года назад

      Thanks, Gopinath P! 🙂 you can go with riverpod as are several flaws with Provider that Riverpod solves