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.
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?
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?
@@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.
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
You find the other Riverpod parts here: 2. Riverpod Tutorial: ruclips.net/video/vD-I1ARIMnk/видео.html 3. Riverpod Tutorial: ruclips.net/video/7h2BrtK8Bpg/видео.html
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.
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!
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
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.
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 🙂
@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
Thank You sarfaraz ahmed! Follow this link: stackoverflow.com/questions/62639723/can-a-streambuilder-return-listwidget I hope you will get your answer 🙂
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.
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
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?.
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/
Pin on top?
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.
Best Riverpod tutorial ever
This was the best tutorial on Riverpod
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.
Thank you Johannes
I'm using getx lately but I'm learning riverpod too, great explanation, thanks!
this man channel deserved 1 mil subs
Thanks, for your support, Sayyid J! 🙂
the consistency...is greatly appreciated.
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?
Thank you, Wesley! 🙂 There is no good or better, take the state management that you like the most. Personally, for projects, I use Redux :)
Hurray!! 100th video bro 😁🔥. Waiting for the upcoming parts.
자막 제공해 줘서 정말 감사합니다. 구독 과 좋아요 누루고 강좌 시청 했습니다.
You explained very well, I like your videos thanks Johannes Milke 💯
Amazing video, Waiting for the next one.
Looking forward to the next parts! :)
I personally use the "controversial" GetX (Obs) with CetX_cli package, which helps with structure, routes, toasts etc. .
Excellent work
Great video, congratulations, and thanks
Cool stuff. Subscribed right away :)
Please make a Riverpod 2.0 video, this video has a lot of stuff that is depriciated.
Thanks for the idea, Maruf Hassan! 🙂 I have added it to my list of ideas for future videos!
@@HeyFlutter +1
It could contain riverpods migration tool.
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?
@@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.
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
excellent content, thanks for this.
please create more tutorials about Riverpod.
You find the other Riverpod parts here:
2. Riverpod Tutorial: ruclips.net/video/vD-I1ARIMnk/видео.html
3. Riverpod Tutorial: ruclips.net/video/7h2BrtK8Bpg/видео.html
Thank you so much🙏🏽🙏🏽
Finally and finally
Awesome tutorial👌👌
@@HeyFlutter if possible make tutorial on flutter_riverpod with the widget of checkbox, alertdialouge box, textfield.🙏🏽🙏🏽
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.
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!
@@HeyFlutter So this is a use case for "use read if you know what you are doing"? Else watch() is recommended.
thank you so much, just in time i need it.
Very Nice, Thanks
Thank you !!
You are welcome, Top C'Top!
How to change the value of ScopedProvider in the run time ?
btw your videos are amazing
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
Hi Johannes... Is Riverpod better than GetX ?
This is more like a preference - there is no right or wrong, personally my choice is Redux, Provider or Riverpod.
i need this thank you master :D
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.
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 🙂
@@HeyFlutter ok thanks
Please Sir, Make a video on go_router.
thank you.
Thanks for sharing idea, Flutter Fix! 🙂
+1
@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
In stream builder if you want to list all number as widget as stream is received. how to do that.
Thank You sarfaraz ahmed! Follow this link: stackoverflow.com/questions/62639723/can-a-streambuilder-return-listwidget
I hope you will get your answer 🙂
Sooooooooo good ✌️
you are awesome!
Thank you 🙏
How to restart the stream timer in StreamProviderPage ?
@@HeyFlutter i wish to know the way like yours,in riverpod streamprovider
Thank you, Eric PL! You could learn more about to restart the stream timer here: stackoverflow.com/a/54611581
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.
@@HeyFlutter Another interestig Video is made by Robert Burnhage ruclips.net/video/3eOn4CtO5hg/видео.html
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
ScopedProvider is now removed. All providers can now be scoped.
Thank you, ST! 🙂
Русскоязычные также смотрят это видео ?
Thank you, @muhammadeshonjonov8758! 🙂
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?.
@@HeyFlutter Ok thank you. Do you have any other suggestion apart from riverpod?
Thanks, Gopinath P! 🙂 you can go with riverpod as are several flaws with Provider that Riverpod solves