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!!!
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!
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 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; } });
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 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?
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
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
@RivaanRanawat, Example tutorial next video this: Api calling and pagination data with in riverpod flutter Are you implement this example and upload video?
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.
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.
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 ❤️🤝
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!!
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
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!!!
i have came across this video for like 100 times. whenever i need a recap about riverpod im here 😅😅 great video❤❤
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!!
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!
Riverpod Project Tutorials:
9.5 Hour Reddit Clone: th-cam.com/video/B8Sx7wGiY-s/w-d-xo.html
5 Hour Google Docs Clone: th-cam.com/video/W6vAQdzLcu4/w-d-xo.html
10 Hour WhatsApp Clone: th-cam.com/video/yqwfP2vXWJQ/w-d-xo.html
Can you please pin this comment, or add it in the description?
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🙂
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
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.
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 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 explaining stateNotifierProvider so well. It took me an hour to practice and learn every detail you explained...
So happy it helped!
I watched many riverpod tutorials and this guy knows what he is teaching. Thanks
Thanks Ortay! Glad it was helpful🙂
you are doing amazing things for your age, more power to your elbow 👏👏👏👏👏
Haha, thanks a lot Elif, appreciate it:)
Thanks Vai . badly needed this ❤❤❤❤❤❤ love from Bangladesh 🇧🇩
hey i am also form bangladesh.
Thank you!!
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!!
You can make the part file with a snippet from the riverpod snippets... it even picks up the filename properly.
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.
Excellent Explanation of Rivopod in detail... keep it up
Thanks a lot
Your videos and explanations are awesome.
Glad you like them!
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 🔥
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🙂
Thanks a lot, Ranawat. That's all I needed for my next project
Pleasure is mine!
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?
excellent riverpod tutorial
watching this tutorial in your Udemy course
Once again, a beautiful tutorial
Thank you!
Best explanation for riverpod
Glad you think so!
Best riverpod video ever thanks
Thanks Ikechukwu, glad it was helpful!
Great video on riverpod. Thanks bro 👍
No problem!
Thanks Rivaan for this amazing tutorial . Would you make a video about Riverpod with Hooks and explain the differences ?
Sure thing!
Thank you, Rivaan Ranawat
Most Welcome Jashwanth!
thats a great video, would love to see move riverpod stuffs and as for code generation please give some solution for statenotifier too.. thanks
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 :)
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
The best tutorial!! Thank you so much
Glad you liked it!
Truly a fantastic video! Thank you!
Pleasure is mine!
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 😃
Thank you so much for this tutorial!
Most welcome!
20 Hours Dart & Flutter Full Course - th-cam.com/video/CzRQ9mnmh44/w-d-xo.html
Lovely video.
Can you bring some more new projects with firebase or using ai ml
Thank you, Bro! You are the best!!
Thank you for your support 💪
Hey bro thank you so much.Please make a tutorial for bloc also
@RivaanRanawat, Example tutorial next video this: Api calling and pagination data with in riverpod flutter
Are you implement this example and upload video?
wow love this
Glad you like it
Thanks , it helped a lot.
Happy it helped!
Thanks for the video ❤️
Most Welcome!
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.
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 ;)
Superb bro
Thanks Sarath!
I need meta programming with dart if you do that well 👍
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
Hello, can you make a video about undo/redo implementation by using Riverpod?
Noted!
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.
thank you brother
Pleasure!
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 ❤️🤝
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 ❤
This video is a gem.
Thank you Rajender, happy it was helpful🙂
Thank you sir
Most Welcome!
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.
can you please tell which plugin is used in VS Code that gave instant error description. TIA
error lens
Thanks
Could be great to show Notifier and Async Notifier as both State and State notifier are obsolete
Yup! Saved it for a seperate tutorial :)
Great 😄
Thank you!
Can I get the link to the part 1 of this video
Bro im using windows instaling virtual box and how to yous flutter and vs code androide studio all instaling virtual box or not
I couldnt use the data class generator extension even after downloading it
PLS HELP!
how do i create AgoraRtcEngine() provider using flutter riverpod ?
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
bro create a video about api with riverpod
do we need to learn provider first before entering into the riverpod?
Nope, you can follow this tutorial without the knowledge of Provider.
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
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!!
Please ak refresh token implementation flutter ka leke aow, graphql ka 🙏❤️
In line!
Create an website in flutter, tutorial plz
could I get source code?
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!
Same video you upload on udemy 😂 whats going on bro
sorry Rivaan i like your videos but this was quite difficult 😒
26:40
Hi Build Full Stack Telegram Clone
Full Stack WhatsApp Clone is already released!
succesfully wasted 1:54:32 minutes
myru