In your StreamProvider example, you're not returning 10 items in a stream, you're returning a single item that is a List of 10 elements. In other words, had you showed the type of the StreamProvider, it would have been StreamProvider. It would have made more sense to show a StreamProvider, and for that you would need to change your yield to a for-in loop, possibly with a delay to see the stream slowly being dribbled out.
Some more inaccuracies in this tutorial mentioned by Randal on Reddit. Please take a look at it. > Doesn't show generated classes, but that would have taken another 20 minutes. :) > Incorrectly describes some of the legacy providers as not redone yet, when in fact AsyncNotifier and Notifier can replace pretty much everything except StreamProvider, and I understand that's on the way. Thanks for taking the time and pointing it out Randal, really appreciate it!
here is that example final streamProvider = StreamProvider((ref) async* { for (var i = 0; i < 20; i++) { yield (i); await Future.delayed(Duration(seconds: 2)); } });
Wow, such a clean tutorial and very helpful + straight to the point. I'm 20 mins in with my ADHD and didn't stop because of curiosity and enjoyment. Although I already know many of the concepts of Riverpod. Good job!!!
Rivann Thank you so much for your videos.... I dont know why but every time you explain it makes perfect sense for me and its really easy to understand. Good Job!
i've been watching videos of provider for exactly a week, this one is the best, it considers the viewer a complete begginer which is really appretiate. Thank you!
one of the best videos on riverpod topic.. I am ready for the next one with practical examples.. -> best folder structures for riverpod when - building a web crawler - newsfeed... - simple real time chat (any open source database but firebase or amplify --> love appwrite and serverpod..)
Thanks rivaan you always make everything easy great tutorial I was confused and didn't know where to start and you showed up you are one of the best teachers for flutter community
Thanks for the excellent tutorial. In the StreamProvider example (01:13:52), you are returning a constant list. Adding for loop and delay will be more helpful in understanding the change in the stream. final streamProvider = StreamProvider((ref) async* { const int max = 20; List list = []; for (int i = 0; i < max; i++) { await Future.delayed(const Duration(seconds: 1)); list = [...list, i]; yield list; } });
Thanks Rivaan for this tutorial. I would like to ask why your have not mentioned NotifierProvider, AsyncNotifierProvider and AutoDisposeNotifier as NotifierProvider is suppose to replace StateProvider and StateNotifierProvider as far as I understand?
What is the difference between these two, they work the same //1 ref.read(nameProvider.notifier).state = val; //2 ref.read(nameProvider.notifier).update((state) => val); both of these does the job for me which is change the name with whatever I type in my textfield
Great tutorial 🔥 My question is timestamp: 1:49:41, if you look at the method fetchUser using the @riverpod annotation, is this supposed to be async? Or not needed because riverpod will take care of it? Thanks
Hey Rivaan first of all thanks a lot for making such kind of informative video. Can you make a video on post an API and taking the user credentials and tokens from the ui screen and using it for making a post request and then use the response to change the ui like after login we can show the user name and his personal details on the ui.
Also make a get request for which also take some inputs from a different screen and when we get the response update the data also tell how to replace all setState that used for filtering or sorting or updating the data and also please tell how to handle different kinds of errors like for different errors we can do different things like 401,403 and or other errors. Like in .when method we are getting data, loading and error but how to handle different errors how I can check I am getting this status code or different code so that I can perform different operation. Please Rivaan make a video in all these concepts so it will be better for us because it's a real time project problem. Thankyou in advance. Hope you will consider my request. I had liked your videos and also subscribed your channel.
Rivaan Ranawat great video but bro you promised the family portfolio bro where's it. But nice keep up am still watching all you lectures to get better bro One Love ❤️🤝
This is definitely an amazing explanation overall, but it feels like overwhelming. Someone was smoking weed when wrote all this stuff. Flutter it soo out of the regular dev stuff that looks incredible more complicated than should be. thanks anyway 😅
I agree this seems very overwhelming. But once you get used to it, there's definitely no looking back! It decreases the time taken to code things by a big margin as compared to other state management tools. If you get a good idea of when to use what type of provider, Riverpod has many many advantages. I'd recommend getting started with a project. You'll definitely understand by doing.
Consumer. You can wrap the Text widget with Consumer. Because if we use ConsumerWidget, Appbar will rebuild as well. But this is probably over optimisation, doesn't matter that much
full app banao flutter and node js Like any real time change ui reactive ui game app like ludo And I I love your voice ek bar hindi main shunni hai please
In your StreamProvider example, you're not returning 10 items in a stream, you're returning a single item that is a List of 10 elements. In other words, had you showed the type of the StreamProvider, it would have been StreamProvider. It would have made more sense to show a StreamProvider, and for that you would need to change your yield to a for-in loop, possibly with a delay to see the stream slowly being dribbled out.
Some more inaccuracies in this tutorial mentioned by Randal on Reddit. Please take a look at it.
> Doesn't show generated classes, but that would have taken another 20 minutes. :)
> Incorrectly describes some of the legacy providers as not redone yet, when in fact AsyncNotifier and Notifier can replace pretty much everything except StreamProvider, and I understand that's on the way.
Thanks for taking the time and pointing it out Randal, really appreciate it!
here is that example
final streamProvider = StreamProvider((ref) async* {
for (var i = 0; i < 20; i++) {
yield (i);
await Future.delayed(Duration(seconds: 2));
}
});
@@anshumansharma2251 Thanks Anshuman!
In Simple words if someone want to become Pro in flutter then i think Rivaan is best Option.
Thank you so much Rivaan .
Thanks for the kind words!!
Wow, such a clean tutorial and very helpful + straight to the point. I'm 20 mins in with my ADHD and didn't stop because of curiosity and enjoyment. Although I already know many of the concepts of Riverpod.
Good job!!!
no bla bla... meticulously planned and executed teaching approach. Thank you so much for your valuable time Rivaan
sir you're the best teacher of riverpod, i've watched many riverpod tutorial and just from you i deeply understand the riverpod is
Thanks a ton! Happy it was helpful
Rivann Thank you so much for your videos.... I dont know why but every time you explain it makes perfect sense for me and its really easy to understand. Good Job!
Thanks a ton 🔥
Happy it helps🙂
i've been watching videos of provider for exactly a week, this one is the best, it considers the viewer a complete begginer which is really appretiate.
Thank you!
Glad it was helpful Moha! Thanks for the tutorial review, appreciated 🙂
Best Riverpod tutorial !!!! The thing that makes the difference is the clarity in explanation! Thank you so much Rivaan!
Glad it helped Thomas!!
i have came across this video for like 100 times. whenever i need a recap about riverpod im here 😅😅 great video❤❤
one of the best videos on riverpod topic.. I am ready for the next one with practical examples..
-> best folder structures for riverpod when
- building a web crawler
- newsfeed...
- simple real time chat (any open source database but firebase or amplify --> love appwrite and serverpod..)
Noted! Project with Riverpod + Appwrite is already in work!
@@RivaanRanawat Please note another product udemy clone with flutter and nodejs
@@SwarajSingh-xs6dy Yep, got multiple requests for it.
Thanks Rivaan, this video is great! There are very few people that can explain flutter topics as simply as you!
Glad it was helpful Aleksander!
Thanks rivaan you always make everything easy great tutorial I was confused and didn't know where to start and you showed up you are one of the best teachers for flutter community
That's epic! Happy you found it helpful 🙂
Thanks for the excellent tutorial.
In the StreamProvider example (01:13:52), you are returning a constant list. Adding for loop and delay will be more helpful in understanding the change in the stream.
final streamProvider = StreamProvider((ref) async* {
const int max = 20;
List list = [];
for (int i = 0; i < max; i++) {
await Future.delayed(const Duration(seconds: 1));
list = [...list, i];
yield list;
}
});
Yup, that's right! I made this mistake while explaining StreamProvider. Hope this comments help someone so that they can understand better
Thanks vishwajeet patil
I was searching for riverpod for beginner and you uploaded it 🙌
Hope it helps!
Is it lso.also begginer strat with this or do i need to learn one of them of block getx or provider?
@@justworkfine321 No prior experience with any state management tool is required.
thanks for explaining stateNotifierProvider so well. It took me an hour to practice and learn every detail you explained...
So happy it helped!
Thanks Vai . badly needed this ❤❤❤❤❤❤ love from Bangladesh 🇧🇩
hey i am also form bangladesh.
Thank you!!
you are doing amazing things for your age, more power to your elbow 👏👏👏👏👏
Haha, thanks a lot Elif, appreciate it:)
One of the best video to learn riverpod, you have so much clarity in explanation, i love watching your videos superb channel great work🥰
Thank you very much Suresh, glad you like them!!
Your videos and explanations are awesome.
Glad you like them!
You can make the part file with a snippet from the riverpod snippets... it even picks up the filename properly.
I watched many riverpod tutorials and this guy knows what he is teaching. Thanks
Thanks Ortay! Glad it was helpful🙂
Man! Thanks a lot, Rivaan! All your tutorials have helped me a lot. Looking forward to seeing you make a finance app with Flutter.
Happy to hear that Sunjo! Will get to finance app as soon as possible.
Riverpod Project Tutorials:
9.5 Hour Reddit Clone: ruclips.net/video/B8Sx7wGiY-s/видео.html
5 Hour Google Docs Clone: ruclips.net/video/W6vAQdzLcu4/видео.html
10 Hour WhatsApp Clone: ruclips.net/video/yqwfP2vXWJQ/видео.html
Can you please pin this comment, or add it in the description?
I'm convinced to switch from Getx to RiverPod. This was a very nice video. Thanks
Mission Accomplished! Thanks a lot for sharing, glad it helped🙂
Bro let me tell u something......
U r Awooosoommeeeee Mannnnnnnn
I learn a lot from u
U are One Man Army
Love from Pakistan❤
Thanks a ton 🔥
excellent riverpod tutorial
watching this tutorial in your Udemy course
Thank you, Rivaan Ranawat
Most Welcome Jashwanth!
Thanks a lot, Ranawat. That's all I needed for my next project
Pleasure is mine!
most underrated video for Riverpod,cheers mate
Glad you think so!
Excellent Explanation of Rivopod in detail... keep it up
Thanks a lot
Best explanation for riverpod
Glad you think so!
Thanks Rivaan for this tutorial. I would like to ask why your have not mentioned NotifierProvider, AsyncNotifierProvider and AutoDisposeNotifier as NotifierProvider is suppose to replace StateProvider and StateNotifierProvider as far as I understand?
Please bring Nodejs and Flutter series
Noted! Working on a big series as of now, will get Flutter + Node soon!
@@RivaanRanawat also make a broker app , i have mentioned and explained you on your discord have a look :)
Hey bro thank you so much.Please make a tutorial for bloc also
Once again, a beautiful tutorial
Thank you!
thanks rivaan 😃
Best riverpod video ever thanks
Thanks Ikechukwu, glad it was helpful!
Great video on riverpod. Thanks bro 👍
No problem!
thats a great video, would love to see move riverpod stuffs and as for code generation please give some solution for statenotifier too.. thanks
What is the difference between these two, they work the same
//1
ref.read(nameProvider.notifier).state = val;
//2
ref.read(nameProvider.notifier).update((state) => val);
both of these does the job for me which is change the name with whatever I type in my textfield
Thanks Rivaan for this amazing tutorial . Would you make a video about Riverpod with Hooks and explain the differences ?
Sure thing!
The best tutorial!! Thank you so much
Glad you liked it!
Truly a fantastic video! Thank you!
Pleasure is mine!
Thank you so much for this tutorial!
Most welcome!
Thanks
Lovely video.
Can you bring some more new projects with firebase or using ai ml
please create same video on bloc also . Thx for creating this video
Next video of the State Management Series will be Bloc! Currently working on a big series so it might take some time ;)
Thank you, Bro! You are the best!!
Thank you for your support 💪
Great tutorial 🔥 My question is timestamp: 1:49:41, if you look at the method fetchUser using the @riverpod annotation, is this supposed to be async? Or not needed because riverpod will take care of it? Thanks
Thanks!
There's no point putting async because ultimately we will be returning Future. Marking a function as async makes it of the type Future
@@RivaanRanawat Awesome! Thank you for replying
Hey Rivaan first of all thanks a lot for making such kind of informative video. Can you make a video on post an API and taking the user credentials and tokens from the ui screen and using it for making a post request and then use the response to change the ui like after login we can show the user name and his personal details on the ui.
Also make a get request for which also take some inputs from a different screen and when we get the response update the data also tell how to replace all setState that used for filtering or sorting or updating the data and also please tell how to handle different kinds of errors like for different errors we can do different things like 401,403 and or other errors. Like in .when method we are getting data, loading and error but how to handle different errors how I can check I am getting this status code or different code so that I can perform different operation. Please Rivaan make a video in all these concepts so it will be better for us because it's a real time project problem. Thankyou in advance. Hope you will consider my request. I had liked your videos and also subscribed your channel.
Thanks , it helped a lot.
Happy it helped!
20 Hours Dart & Flutter Full Course - ruclips.net/video/CzRQ9mnmh44/видео.html
Thanks for the video ❤️
Most Welcome!
I not watch it but this will be gret
Thank you!
Thank you sir
Most Welcome!
Superb bro
Thanks Sarath!
wow love this
Glad you like it
thank you brother
Pleasure!
hi rivaan could you please share the extension link for dart data class genrator which you are using as mine give only toMap and fromMap
thank sir ,i hope next video you can make tutorial payment with paypal and stripe 😃
Not the next one. Currently working on a big series, will get to Payments in Flutter while completing it.
Rivaan Ranawat great video but bro you promised the family portfolio bro where's it. But nice keep up am still watching all you lectures to get better bro
One Love ❤️🤝
This is definitely an amazing explanation overall, but it feels like overwhelming. Someone was smoking weed when wrote all this stuff. Flutter it soo out of the regular dev stuff that looks incredible more complicated than should be. thanks anyway 😅
I agree this seems very overwhelming. But once you get used to it, there's definitely no looking back! It decreases the time taken to code things by a big margin as compared to other state management tools. If you get a good idea of when to use what type of provider, Riverpod has many many advantages. I'd recommend getting started with a project. You'll definitely understand by doing.
can you please tell which plugin is used in VS Code that gave instant error description. TIA
error lens
Great 😄
Thank you!
This video is a gem.
Thank you Rajender, happy it was helpful🙂
Could be great to show Notifier and Async Notifier as both State and State notifier are obsolete
Yup! Saved it for a seperate tutorial :)
Which is better to use consumer or ConsumerWidget in the counter example if I only want to update a single text widget in the centre of the screen ?
Consumer. You can wrap the Text widget with Consumer. Because if we use ConsumerWidget, Appbar will rebuild as well. But this is probably over optimisation, doesn't matter that much
@@RivaanRanawat Thanks ❤
Bro im using windows instaling virtual box and how to yous flutter and vs code androide studio all instaling virtual box or not
I need meta programming with dart if you do that well 👍
I couldnt use the data class generator extension even after downloading it
PLS HELP!
Hello, can you make a video about undo/redo implementation by using Riverpod?
Noted!
bro create a video about api with riverpod
full app banao flutter and node js Like any real time change ui reactive ui game app like ludo
And
I I love your voice ek bar hindi main shunni hai please
Hahaha, noted!!
Hey can you please make some tutorials on blockchain and flutter, a web3 project using flutter would be awesome
Noted! Working on a big series as of now, will get to projects with Web3!
@@RivaanRanawat thanks. There much content on flutter and web 3 . It would be very helpful
how do i create AgoraRtcEngine() provider using flutter riverpod ?
Hi Rivaan, have you ever tried get state management , if you did please give us a tutorial on getx
Avoid GetX
@@MuhammadVaidwhy what's the problem with GetX
@@vinodh9492 search for the video titled "How to Evaluate Flutter Dependencies (or, why I won't use GetX)"
I too would prefer not promoting projects using GetX.
do we need to learn provider first before entering into the riverpod?
Nope, you can follow this tutorial without the knowledge of Provider.
Can I get the link to the part 1 of this video
Why Iam not getting option like “Generate copywith” on quick fix (00:30:28) ? Do I need to install any extension?
Dart Data Class Generator
Please ak refresh token implementation flutter ka leke aow, graphql ka 🙏❤️
In line!
How to add music in Instagram stories and videos one tutorial
Sir Can you please Provide Source code.
I didn't save it in any GitHub repository 😅
You can find all code on Riverpod website, link mentioned in description!
could I get source code?
26:40
sorry Rivaan i like your videos but this was quite difficult 😒
Same video you upload on udemy 😂 whats going on bro
Hi Build Full Stack Telegram Clone
Full Stack WhatsApp Clone is already released!
myru
succesfully wasted 1:54:32 minutes