After reading several articles purporting to explain Flutter provider I was left with a headache and still did not understand provider. I saw your video today and thought, "Well, I'll give it a shot." Now I understand provider and how to implement it. And I don't have a headache. Thank you!!!
Nice job, really simple to understand, maybe you can do it for Riverpod because it's going to be the Provider 2.0 ? :) Thanks a lot, nice animation btw
@@FlutterMapp I beg you to do a full Riverpod 2022 tutorial for beginners... I have learned Flutter from a course and now i don't know what is the next step! I want to build my own app but i don't wanna start on the wrong path without knowing state managment, most of the tutorials around are old, complex, and all around not enough. I have subscribed to your channel and hope that you will do it! Also you have a pretty accent :)
The interest is very appreciate Arham! Thank you very much. I want to say that all the information is also available on youtube if you make some research about it, its not secret information 🙏🔥
On the other hand he only showed basic use of Provider, there is more to it. For example, instead of creating a new function, he could've written *set* and he didn't mention Consumer widget
@@FlutterMapp Its personal preference I guess. For me bloc is much easier to implement and maintain. It is similar to providers. It has `events` which triggers `states` and you use the bloc provider to build
I use the most simple architecture to be honest. I call it the triple D. Display, Data, Domain. You can check the 3 free preview videos on the website, I explain how I do it ⚡ courses.fluttermapp.com/p/the-complete-flutter-course-hero-to-pro?coupon_code=PRESALE . With the 3 preview videos you can understand the concept I think and do it by yourself 🙏⚡ I hope this help
Albert Einstein once said, “Smart people simplify things.” You don't always need to understand 100% of the topic, sometimes all you need is just 60% in order to start working!
This was a very simple provider example. I dont really talk about state in this video... I know Code with andrea have a lot of videos about provider if you want 👏👏
nice video, provider works like a react context or redux, it works in the same way, but in react you have to be very careful updating the tree component
🤣🤣🤣 I know. I really try my best to make this as simple as possible. I know it can be confusing when someone start with provider/state management! 🙏 Thanks a lot!
Necesito aprender ingles, es sin saber ingles y me estoy enterando mejor que con un curso que pague, jejeje millon de gracias I need to learn English, it's without knowing English and I'm finding out better than with a course that pays, hehehe thanks a million
when u have multiple pages , and u have to reflect changes on all then u can use provider , eg when u change your username in instagram , it reflects to comments , messages , your profile. etc , so it can all be done in one line of code
Provider is very easy, but always need context and consume more resources because don't dispose provider when close page. GetX dispose and delete controller when back or close the page. How to make Provider release resources?
I been using provider but it seriously works like a black box ie. You can't know if your widget has that provider in the parent widgets unless you run the code. It's a downfall. Also multiple same providers will clash and the most deep one will be selected
Should, instead of declaring the provider on the build method, use Consumer. And even more important than that, don't ever use global MultiProvider. Providers should be nested on the widget tree. Only create Providers when you really want to use them. For example, the ChangeNotifierProvider could be called inside the build method of a view.
@@3litepker basically, each widget (being a view or not) should have it's own state controller, that gets created when needed and disposed when the widget is no longer on the widget tree. for example, if you use a global controller, lets say the user sign in, and then sign out. that controller would still hold information about that user, unless you manually implement something to dispose that data, which is not recommended.
@@FlutterMapp none lol provider ties you up to much in your own widgets heirarchy bloc is far too much boiler plate so it cubit not tried riverpod, but I have my own implementation where I use Rx dart behavior subjects and getIt for dependency injection
Yes its very simple explanation, it very hard to mix things together in youtube videos (api + provider) since its a double promise of the video. In this way it make the video a little bit more complex. Also, more specific a video is, less views it will get. Less views = youtube don't recommend the channel = Flutter Mapp can't make more and more videos 🤣 It's a long answer.. I do appreciate your comment Apparao, I hope this make any sence, otherwise let me know what you think, I always appreciate feedback! 🔥
@@FlutterMapp The video is good enough I think. All I have to do is integrate api myself. I just thought when you are asking for library, I thought it will be atleast like one of the 10 mins video kind of thing, like responsive UI you made long back. That's it. Sorry for misunderstanding though. And thank you for the video.
After reading several articles purporting to explain Flutter provider I was left with a headache and still did not understand provider. I saw your video today and thought, "Well, I'll give it a shot." Now I understand provider and how to implement it. And I don't have a headache. Thank you!!!
That is very cool to know! Obviously this video is just the tip of the iceberg. There is much more to learn but you have the basics now 🙏
@@FlutterMapp In provider we have constructor, so why you does't init it in multiprivider? Your code does't work
@@zhenya42889 its not up-to-date
The best and the quickest possible tutorial ever for flutter provider! SUBBED!
Thanks man, I read every article there was and I still couldn't wrap my head around it. Keep it up!
Very simple, and straight to the point! Great job
Thank you!
@@FlutterMapp :)
Man, this is some level explanation. Great work
Thank you very much Faizan. I really appreciate your comment! ⚡🙏
Best video you have ever published
Thank you very much Francisco! I really appreciate it 🙏
omg i was stuck on this topic for hrs and you told in 2 mins!!!
2:02 "No bullsh*t, no wasting time" I liked that
such an amazing video! glad to know there is video like this!!
Thank you very much Rifki! I do really appreciate it 🙏⚡
Provider is the best!
🤣 I dont know any other soo... 🤣
Perfect explanation
Thank you very much Mostafa! 🚀
Thanks for the concise explanation!
clean, easy and direct
Thanks a lot Ricard! I appreciate it 🙏
If only everyone in my life talk like that no bullshit and straight to the point.
That's a great explanation
Thank you very much Amimul! 🔥⚡
Amazingly explained in 2 mins. Thanks
Nice Louis !
Pleasure! Thanks for the comment Dan! 🚀
Llevo un año en flutter y hasta hoy entendi como funcionan los providers, gracias bro
👏👏
Straight to the point... Great job mate.
Thanks!
bloc vs getx vs provider or riverpod Comparison please
I will do a full comparison of all state management one day for sure ⚡
@@FlutterMapp Thank you waiting for that.
Nice short explanation of providers
Thank you Manuel! I appreciate your comment! ⚡
Simple and staight to the point.
Thank you very miuch 🙌🔥🔥🔥
Provider looks good and I have try it. More simple than bloc.
and this is officially supported by Flutter team
Thanks for the comment! I also use Provider but never tried bloc, will try next week 🙏
@@FlutterMapp Ok you give a course right after discovering something... It's not very serious.
@@pokapow The flutter bloc video was created by someone who actually know bloc. I would not be able to do it without the channel "max on flutter" 🔥
Do you have a course on flutter_hooks ?
I dont. I usually release courses for big content. I could do a free video about it on youtube instead 👏🙏 (one day)
This video alone made me want to buy your course.
Dammmn!! thank you 👍🙏
This is helpful for beginners.. please make a video on stream provider and other uses
Make a for noobs series!!!! This is really helpful!!
Thanks a lot for the comment! I will eventually do all state management for beginners 👋🔥
This video is on another fucking level! Kudos to all the hard work
Nice job, really simple to understand, maybe you can do it for Riverpod because it's going to be the Provider 2.0 ? :) Thanks a lot, nice animation btw
+1 on this one. I hope we could have a riverpod tutorial as well.
Yeah I will do it with riverpod also eventually 🔥⚡ Thanks Adam!
@@FlutterMapp Thanks bro you’re the best
@@FlutterMapp I beg you to do a full Riverpod 2022 tutorial for beginners... I have learned Flutter from a course and now i don't know what is the next step! I want to build my own app but i don't wanna start on the wrong path without knowing state managment, most of the tutorials around are old, complex, and all around not enough. I have subscribed to your channel and hope that you will do it! Also you have a pretty accent :)
How do you manage state with this when you are creating a model from json
Thats a good question. I will have to make a advanced video about it. this one was for beginners since I really wanted to simplify everything. 🙏
ur tutorial is like mug up it is what it is no need to go deep😁
Merci c'est parfait
Plaisir, thanks for the comment TR⚡⚡
this is amazing
Thank you very much Nithin! 🙏
thank you best explanation
I Am Really Interested in your Hero Course but I don't have an amount to buy it.
The interest is very appreciate Arham! Thank you very much. I want to say that all the information is also available on youtube if you make some research about it, its not secret information 🙏🔥
I like the way of your teaching but OK I understand and Will meet with you in Future soon!
Nice video, thanks.
I had difficulty understanding state management. Thank you very much. I understand it the easier way. Thing is you even use provider.
Thanks for the comment Adamu, I appreciate it 🔥
The King of explications 😂😄😄✊✊👍👍👍👍👍👍❤️
Please do an other for BLOC
I will do it for bloc realllllly soon 🙌🙌🙌🔥🔥🔥 thank you so much btw! 🙌✌
Don't forget about cubit also please
On the other hand he only showed basic use of Provider, there is more to it. For example, instead of creating a new function, he could've written *set* and he didn't mention Consumer widget
If the course is like this (not really going deep), then I don't thinks it's the best one IMHO.
got it ⚡🔥
Your videos are soo nice
Thank you very much! I appreciate that a lot! ⚡🙏
what flutter version are u using? im trying to use provider but I get stuck in the nullabe thing
Newest flutter version 🔥 this code is with null safefy 🙌
It's similar like bloc when you call provider ,event and builder ... Right??
Yes
I dont really know bloc at the moment, but I will need to learn it in order to make a video about it I guess.. 🤣
@@FlutterMapp How can you arrange your architecture (Which library do you use?)
@@FlutterMapp Its personal preference I guess. For me bloc is much easier to implement and maintain. It is similar to providers.
It has `events` which triggers `states` and you use the bloc provider to build
I use Provider at the moment since its the first I learned. But might change after learning bloc 🙏
What architecture should be used with provider? I can't wrap my head around so many options
I use the most simple architecture to be honest. I call it the triple D. Display, Data, Domain. You can check the 3 free preview videos on the website, I explain how I do it ⚡ courses.fluttermapp.com/p/the-complete-flutter-course-hero-to-pro?coupon_code=PRESALE . With the 3 preview videos you can understand the concept I think and do it by yourself 🙏⚡ I hope this help
what if we use read and watch instead ?
Good question, I will have to make a advance video about it I think... I usually use it this way since its super simple. ⚡
@@FlutterMapp thanks, i used to use read and watch, and if you help me to understand it even more it will be so awesome, thanks 🙏
Thanks!
Pleasure Pedro! 🔥 Thanks for the comment!
Albert Einstein once said, “Smart people simplify things.”
You don't always need to understand 100% of the topic, sometimes all you need is just 60% in order to start working!
Agree 🔥👋
How would you show a loading indicator in the UI while updating state
This was a very simple provider example. I dont really talk about state in this video... I know Code with andrea have a lot of videos about provider if you want 👏👏
nice video, provider works like a react context or redux, it works in the same way, but in react you have to be very careful updating the tree component
Thanks for the comment Harold, I appreciate it 👏⚡
Please do GetX broo , i need it 😁
Will do it eventually 🙏🔥Thanks Arta
@@FlutterMapp thank you broo, i can't wait it 😅
could you please create a video about parallax effect in flutter?
If you want the best example, there is one on Flutter.dev. docs.flutter.dev/cookbook/effects/parallax-scrolling. I hope this help 🚀
2:23 video explains what ppl can't explain in 2:23:00 !
🤣🤣🤣 I know. I really try my best to make this as simple as possible. I know it can be confusing when someone start with provider/state management! 🙏 Thanks a lot!
Necesito aprender ingles, es sin saber ingles y me estoy enterando mejor que con un curso que pague, jejeje millon de gracias
I need to learn English, it's without knowing English and I'm finding out better than with a course that pays, hehehe thanks a million
Better If you use the Consumer widget to change the data rather than declaring the variable below the Build method. 😋 Btw Nice explanation 👌
Was not aware about this 🤯🤯 Thank you for sharing Gayan!
@@FlutterMapp Seriously ??
You give a course on providers and you do not know the Consumer widget ?
Hello, nice video. How is it different from using a class directly?
The difference is you don't have to use setstate 🙏 the provider is now the 'setstate' 🚀
when u have multiple pages , and u have to reflect changes on all then u can use provider , eg when u change your username in instagram , it reflects to comments , messages , your profile. etc , so it can all be done in one line of code
according to my understanding
Thank you for the explanation 🙇🏻♂️
Bonne vidéo !
Merci beaucoup! 🚀
Does your course have any affiliates? If so please let me know the application process as I would love to help sell your course everywhere
Damnnn thank you very much Patel! Send me a message on instagram @flutterMapp 🔥⚡
Super nice
Thanks a lot! 🔥⚡🙏
No bull shit no wasting time ♥
looool 🤣 Thanks for the comment!
thank you thank you
How about mobx?
🧐🧐🧐 If we have a lot of request about it I guess
Provider is very easy, but always need context and consume more resources because don't dispose provider when close page.
GetX dispose and delete controller when back or close the page.
How to make Provider release resources?
@@cmmsilva yes they do have default disposers
I would like to learn GetX also! To see the difference. I will do a video about it eventually Alex. Thanks for the comment 🔥
I been using provider but it seriously works like a black box ie. You can't know if your widget has that provider in the parent widgets unless you run the code. It's a downfall. Also multiple same providers will clash and the most deep one will be selected
Didnt know about this 🧠🤯. Will do bloc next week 🙏
GetX please
Will do bloc before since the community post have more vote for it 🤣 I will do all of them eventually ⚡
we need bloc and getx also
Will do them eventually for sure 🔥⚡
Why did you make a tutorial for Provider first, if Cubit has won the poll?
Because provider was easier and I didnt finish to learn about bloc yet 🤣 Tomorrow the video is about Bloc 🔥
Why should we use this??
If we use consumer widget then it should be working on not if working then write me the code with using consumer widget
Im not sure to understand this sentence to be honest... 🧐🧐🧐
@@FlutterMapp
I say that how we use consumer widget in the provider
Should, instead of declaring the provider on the build method, use Consumer. And even more important than that, don't ever use global MultiProvider. Providers should be nested on the widget tree. Only create Providers when you really want to use them. For example, the ChangeNotifierProvider could be called inside the build method of a view.
Thanks for the comment Diogo! I will remember next time to use the consumer 🙏🚀
Why wouldn't you use a global multiprovider? Isn't the whole point in that to use the provider wherever you want?
@@3litepker basically, each widget (being a view or not) should have it's own state controller, that gets created when needed and disposed when the widget is no longer on the widget tree. for example, if you use a global controller, lets say the user sign in, and then sign out. that controller would still hold information about that user, unless you manually implement something to dispose that data, which is not recommended.
I Want your paid courses but I can't afford to buy 😞
Are you french ?
Yes I am! Et toi aussi Shynei? 🙏
Oui j’ai reconnu ton accent haha
@@Shynei tu viens de ou? France/Canada/autre? (Je suis de montréal, canada)
@@FlutterMapp Quebec
😂👌
super quick 🤣
Good video, hate provider
looool, which one you like? 🔥⚡ Thank you also Martin
@@FlutterMapp none lol provider ties you up to much in your own widgets heirarchy bloc is far too much boiler plate so it cubit not tried riverpod, but I have my own implementation where I use Rx dart behavior subjects and getIt for dependency injection
Or use Inherited!
I have never try inherited to be honest? It does the same? ⚡⚡
Wecwant bloc
I will do it soon 🤣⚡🔥
A little bit over complicated
I think you are right, It could have been a little bit more simple 🤣 I will try again tomorrow with bloc 🚀
Really not the one I expected.
This is too simple.
I expected something with rest api.
Yes its very simple explanation, it very hard to mix things together in youtube videos (api + provider) since its a double promise of the video. In this way it make the video a little bit more complex. Also, more specific a video is, less views it will get. Less views = youtube don't recommend the channel = Flutter Mapp can't make more and more videos 🤣 It's a long answer.. I do appreciate your comment Apparao, I hope this make any sence, otherwise let me know what you think, I always appreciate feedback! 🔥
@@FlutterMapp The video is good enough I think. All I have to do is integrate api myself.
I just thought when you are asking for library, I thought it will be atleast like one of the 10 mins video kind of thing, like responsive UI you made long back.
That's it.
Sorry for misunderstanding though.
And thank you for the video.
@@FlutterMapp
And try to avoid Marvel and DC battle here 🙂
damn i still dont unserstand
Damn.. The explanation was not good enough then 🤣 I will try again tomorrow with bloc!
I didn’t watch it. I am not a noob 😡
😂😂😂😂 Good point!
haha for noob..it think this video special for me 😂