Flutter Provider Simply Explained
Vložit
- čas přidán 9. 07. 2024
- Hopefully a 5 year old would understand the Flutter Provider. Yikes
👉 Sign up for the newsletter to get Flutter latest updates:
learnfluttercode.com/newsletter
🔥 Check out my courses -
🎨 Source code:
pub.dev/packages/provider
⏰ Timeline:
00:00 - Introduction
00:26 - What is a provider
02:28 - How do we create a provider
04:22 - How data flows through a provider
05:44 - Can other widgets listen to the same provider?
07:21 - Challenge
🦋 Hear my thoughts on Twitter -
/ thehappyharis
🤓 See daily learnings on LinkedIn -
/ haris-samingan-7889b9140 - Zábava
The most didactic and graphic videos I´ve ever seen. You sure know how to help people understand, you really are an outstanding teacher. Cheers from Argentina!
Shoutout to the devs that need concepts to be explained to them in kid terms.
thank you
Thanks
Arrigato
This is the best tutorial I've ever seen. You are an adept tutor. Bravo Harris, bravo!
Glad it was helpful!
Awesome explanation. Classic example of "If you can't explain it simply you don't understand it well enough". Thank you
Waiting for the future, proxy and stream provider explanations, combine with implementation with firebase too 🔥
Noted
yes please. one more to the vote.
I usually dont comment on CZcams tutorials, but Man, yours was so easy to follow and so joyful that I just had to. I hope you keep up the good work and high quality explanation videos because they are awesome! Cheers from Brazil
OMG thank you 3000 times this saves my life I've been so exhausted in class because I didn't get the provider concept so following lessons made me confused too, this maybe a hit to get things aligned
I like this guy's vibe and the analogy, he earned my subscription!
It's the best provider explanation on the internet by far. I wish all teachers were like you
Best provider tutorial ive seen so far. Kudos for you man
Dear Sir, you save my day! Crystal clear explanation with fish and river indeed :). Thank you so much and waiting for more tutorials.
What an awesome video! So calm and easy to understand. I was confused by Provider but now I'm getting the hang of it. Thank you.
Nice, I really recommend this for those who come from any non JAVA background, especially JS. This is a very good place to bring into perspective how important it would be to come with a backing of Inheritance, Composition and Generics. And then you would really admire Flutters ability of weaving these hard core programming concepts into a simple package. Great example!
Bro.... Thanks so much. I've watched all these videos where they make provider look like some untamable monster. And no matter how many times I memorized and wrote the code in different styles, I still couldn't figure out what the heck was going on. But now I do and it's so simple!🔥🔥🔥🔥🔥
this is very useful and nobody ever explained me like this. this lesson is very clear to me. hopefully 5-year-old kid may understand this even though he does not know what flutter is 😅
Because it was silly .. it was a perfect! We need a river pod video now.😩
Beautifully explained! Thank you so much!!
Thank you, it helped a lot, you make things very simple to understand.
Best provider video on youtube.You are such a great teacher
Best video about provider! Thank you so much
Simple and Awesome! Thank you so much!
Nice video. When the home and settings widget want to get the data from the provider, do they get a copy of the data or a references to the data? If they get a copy, isn't that expensive? Thanks.
awesome work! and humorously done at the same time :) great work!
OMG! thanks
this helped me a lot cause I have going through so many materials but just couldn't understand what was going on
after More then 7 time try, now i understand thanks
Excellent explanation, now I love provider, fishes and your channel.
The best yet simple explanation for Provider package. Keep it up Haris🔥😎
Thanks for this great explanation! I learned a lot!
Great and nice explanation, really easy to understand, especially for the position of the widgets in the tree!!!
What an amazing analogy... Awesome tutorial. Thanks
Great work man 👍! Love the way you explain this, hope for more.
You should make a full course for Flutter!
Cheers from Egypt =)
Thanks, will do!
These are really great for dummies explanations with pictures haha. Good stuff!
Thank you so much man, this was so easy to grasp
Man you deserve a subscribe, thank you!
I was searching and reading for multiple sites and video to understand the provider concepts but i was not 100% clear to understand the concepts. This video is amazing and nicely explained the concepts with graphic animated story, i could digest the concepts very easily. Subscribed to your channel and going to see your other videos. Thanks
This is so amazing video till I watched... I was go through with multiple videos but never watched like this explanation..
Nicely explained, thanks!
Amazing explanation! Thanks a lot!
Thanks bro! U r amazing! Keep doing what you do!
What if I store the object/fish in a specific place eg. constants.dart, and access it by importing when needed? Can I do this instead of using Provider?
Love u flutter teacher sensei ustad guru 😍😘👨💻👨🏫
Oh my god, finally a tutorial for my cognitive abilities. Thank you ❤
Which software do you use for animations?
Very well explained!
"Widget only flows downwards". You mean in the first example @ 7:00 , i cannot access user data from 's object ?
Great explanation; Thank you for your time
It is really beneficial video, thank you for
embodying it with fishing :)
Thanks for the best explanation. I was having difficulty to understand the concept.
Can you do a video on ChangeNotifier ?
very well explained, I am working on firebase but I have doubt about provider.. thanks for such a wonderful explanation.
Very nice explained in this way. Thanks
This video is so good and useful, nice job man.
Glad it was helpful!
For me this is not the best analogy because after fish has copied into two 6:16 we have two independent fishes. Because of that, if we change color of the settings fish, home fish stays the same red color. That is not correct.
I prefer to visualize it as a context with inversed terrain heights in your picture example (Home, Settings at the top of the mountain and fish object at the bottom), watchman with binoculars is a provider.of(context). Watchman can look at any object 24/7 in surroundings below but not above. In that case we can have a lot of watchmen located at different heights in the mountain looking at the same fish below. If fish changes it's property, color for example, all watchmen outposts get notified instantly and handle it according their own script.
I second all of the comments that call you a great teacher. You are probably the best I've ever seen on CZcams. Keep making vids brother.
Wow, thanks!
Amazing concepts thanks alot
Hey.. Provider working good in debug mode but not working in release mode.
(future Builder, then Consumer)
I wrap the switch inside the consumer
That is hight-quality educational content. Thanks
which state management will you recommend? i feel flutter_bloc requires to write bloaty codes, and end up lost focus aka take too long time.. is there a better choice?
GetX
czcams.com/video/J2iFYZUabVM/video.html - RiverPod, of course.
wowww maannn....great explanation....thanks alot!!!😍😍🙏😍🙏🙏
Wowwwwwwww I really love it. Amazing .. keep it up
best explanation, Thanks,
hi. do you plan on release riverpod course in udemy?
beautifully explained. i like the way you said little fishy.
Thanks for the video
Thank you ,Very useful
Glad it was helpful!
Just the explanation I needed
😁
Awesome Explanation!!!:)
Glad you liked it!
Thank you!
Love ur conten pls create more on ur ig
Wow this is awesome!
Thank you! Cheers!
Amazing! Great video
Thank you! Cheers!
Nice explanation
Thanks, man.
thank you!
The perfect Provider tutorial doesn't ex...
wait! it is this video.
The perfect comment doesn't ex...
wait! it is this comment.
best tutorial ever
Is it like declaring a variable that has scope to all the children in the widget tree?
Amazing!
It was just awesome
I get it now!
You are great!
Please explain build context method.. It is mind bogling
Awesome!!!!!
Hahah so cute! Thank you!
Perfect!
Hello, Sir, I'm 5 years old I got it ... but how and where I will learn the rest of Flutter please make more videos like that.
good visual explanation ..
Glad it was helpful!
❤️
Brother I want to filter firestore data which I am getting through future builder .... Please 🥺 help me
I can pay you for that...
you got 1 more subscriber .. Keep posting flutter videos
Thank you, I will
This video is so cool 😎
Why was that fish so fishy ? 😂
Well,
Simple, neat and clean explanation keep doing the good work !
I love fish! Thanks for watching.
nice explenation
awesome
How do you pass data from child widget to parent widget, considering the fact that context flows downwards? Is there an alternative? Or isn't it not possible at all?
You can use a function call back. Or you can use a change notifier that lives at the top of the parent widget
@@LearnFlutterCode Could you make a video demonstrating the same?
But from where do you get the actual data?
wow so interesting
Awsome
If he'd be my college teacher, I'd spend more time inside the class than outside.
That's a really sweet comment. I'll treasure it.
combine provider with getit and rename the fish to Shark singleton :P