Riverpod an easier approach to access Provider - Flutter State Management
Vložit
- čas přidán 9. 07. 2024
- The next level of the provider usage is Riverpod and Remi brought it to live. It gets rid of some limitations and with this video, I want to create with you a basic application that shows you the beauty and benefits of it. The newest version of Riverpod makes it even easier to access Providers in the codebase from everywhere.
GitHub Repository
Tutorial: github.com/md-weber/state_tut...
Solution: github.com/md-weber/state_tut...
Riverpod Links:
Remi on Twitter: / remi_rousselet
Riverpod Documentation: riverpod.dev
Pub.dev
State Notifier: pub.dev/packages/state_notifier
Flutter_Riverpod: pub.dev/packages/flutter_rive...
Timeline
00:00 Introduction
00:40 What is Riverpod
05:50 Implement Riverpod
14:50 Outro and Special Thanks
Tools we use to grow our CZcams channel
TubeBuddy Review - Manage Your CZcams Channel Easily
www.tubebuddy.com/flutterexpl...
Our current CZcams gear
🎙 Samson Mic: amzn.to/324Gpof
📟 Satechi USB-C Adapter: amzn.to/3kUdQ5M
💻 MacBook Pro: amzn.to/3iQ9MBx
📹 Lumix FZ1000: amzn.to/3g7tW8D
⭐️⭐️Follow us ⭐️⭐️
Twitter Mahtab - / mahtab_dev
GitHub Mahtab - github.com/mt-tadayon
Twitter Max - / flutter_exp
Github Max - github.com/md-weber
Homepage - flutter-explained.org/blog
⭐️⭐️ Support ⭐️⭐️
If you read this so far, thank you once more. If you like to support us, here are some links that could help us a lot.
Donation via BuyMeACoffee - www.buymeacoffee.com/flutterexp
Affiliate Disclaimer We get monetized by affiliate links to products that we believe in. We may receive a commission for purchases you make through these links. This helps us to keep up our work and support us in our day-to-day work.
I'm so waiting for your firebase/riverpod tutorial! O_O ineedzit!
Actually, I made an issue on river_pod's repo, not because there's a bug but because I'd like to know if what I did is correct :thinking:
Gotta say, thanks to you, I was able to grasp a bit more riverpod. github.com/rrousselGit/river_pod/issues/104
Amazing, I am really happy that it helped you along the way :). I think in your example a Streamprovider instead of a Stateprovider would be helpful. Checkout:
pub.dev/documentation/riverpod/latest/riverpod/StreamProvider-class.html
Its a good tutorial. Some improvement :" I think it might be best to also teach us about the file and class naming convention. So we know how to organize our code.
Thank you, I'll "watch" this package :)
Hi Kirill, I highly recommend that :) Remy ist still working hard on the project.
I slowed the playback down to 0,5 speed and still only understood 'fantastic' :) you're still one of the more legible speakers on the topic on youtube - nice work.
I have to improve my wording :) but thank you for your feedback I will see if I can improve even more. If you have some things that I could make better please let me know. 😊
@@FlutterExplained I think you are doing great! I was being facetious. The only part where I lol was where you said 'where comes this from' around 14:30 I felt compelled to terminate it with '.. my precious.' :) Anyways, your work is 10X better than MOST presentations on the subject due to unclear english - a problem most try to cover up with gimmicky memes in the presentation, or rehashing someone else's original content in broken english wrapped in memes thinking they are adding value to the content - ugh. By the way - I really appreciate your TODO lists - it helps to distill and follow your thought process on the impl - please do this with your walkthroughs if possible! Thank you! :)
@@leonelmateus Wow that is amazing feedback!
Thanks for this good video.
Would be cool to see a video talking about Dartz and its advantages.
Noted! But I have not so much skills in Functional programming, I could ask a friend of mine who can maybe say more about it :)
I am sure you will hit 100k subs soon, let me see you grow
I will give my best :)
@@FlutterExplained yeah sir ❤️🔥
Thanks for the intro!
Do you think this package is production ready?
Excellent question, thank you for asking. I talked with Remi about that topic, and he told me that it will soon lose its experimental status.
But at the moment, there are still some beaking changes that could come and change how the package behaves. I would recommend to either wait a little longer to use it in production or calculate the time into the estimations to implement these changes.
@@FlutterExplained Thank you for the reply! :) I think it's best to wait it out. Provider is great as well except the shortcomings you mentioned in the video.
Also I saw in a video Remi explained that Riverpod is an anagram of Provider, which is kinda cool! 😁
I played around with Riverpod weeks ago
Compared to your previous video on Provider State management, this seems more difficult for some reason. Ugh, I just want to know how to use Riverpod.
If I understand it correctly you don't have to worry about using RiverPod global variables because the values are actually held in the widgets.
if you watch the original Remi video/prez on this topic you'll see the state is stored in the ProviderScope wrapper
Hi! Do you have an experience with native development?
Hi Taras, to be honest not really. I worked on an App in pure Android and Java and worked on a lot of Java Projects, maybe I will do a livestream session where I will learn Swift :)
Flutter Explained that's great, I will definitely wait for it!