Flutter Proxy Provider Simply Explained
Vložit
- čas přidán 28. 07. 2024
- Flutter Proxy providers are confusing yet useful.
👉 Pre Sign Up to Flutter Learning Platform :
learncodecode.com/fluter-lear...
🔥 Check out my courses - zukunf.com/courses
🎨 Source code:
pub.dev/packages/provider
⏰ Timeline:
00:00 - Introduction
00:55 - Why Proxy Providers
01:42 - ProxyProvider0
05:04 - What is the difference?
07:18 - ProxyProvider example
09:57 - Another way of creating proxy provider
10:51 - Another way example
13:03 - Outro
🦋 Hear my thoughts on Twitter -
/ thehappyharis
📷 Get updates frequently on Instagram -
/ thehappyharis
🤓 See daily learnings on LinkedIn -
/ muhammad-haris-bin-sam...
😂 Watch my funny side on TikTok -
/ thehappyharis
📘 Rarely here, but why not Facebook:
/ happy-hilarious-haris-... - Zábava
Bro thanks for all your videos. It is really easy and organized. Thanks for the effort. wish you all the best and good luck!
Great video. One suggestion from a teacher perspective. You could have used some self-created class instead of "int" in Provider.of(context ) . Even if an integer counter, we should try to wrap it in a self created CounterModel object and then use Provider.of(context). The reason is that if we have multiple integer variables in our "provider tree", then it makes our tree ambigious that which int provider is wired where.. I hope this makes sense as I am also a beginner, and learning from your videos.
Thanks for pointing it out. Will take note on this
@@LearnFlutterCode Cheers. Great videos. keep them coming.
Thanks man! Pretty clear and concise explanation.
What is Teeeee and What is aRR - hahaha I love it :) Very pedagogic video.
Great videos!! Hope my question makes sense. When should I use provider instead of other state management like GetX ?
The provider package seems to be the best option to use with basic projects but not in big projects. My claims are the dependency injection is abused, having to see multi providers and proxy providers in a lot of files is daunting. I prefer to use redux, I'm in the process of dropping all the provider implementation and I'm really happy of how the flutter code looks now.
To each its own. The best provider package is the one you or/and your team are comfortable with.
I have a issue i want to show the logo of the user from my firestore the user that is authenticated but... i time i get my result ...if i logout and login another user the logo value remain same of past user...
First i authenticate my user then i get the ata from firebase that i save according to authemticated user
Nice video
What is the presentation software that you use?
Hey mate, thanks for a lot of help.
I am small confused like I update my ui with Consumer wrapped with ChangenotifierProvider, so can I replace it with ProxyProvider0. I'm saying this because as shown in your video that ProxyProvider can change values. So can I replace it or I made a mistake please help me guide.
Thanks your Fan❤
What's is this ''Teeee'' and ''aarrrrr'
You're funny without even knowing, best teaching method eveeeeer.
Can you please, help me understand what I need to learn for my app? I've defined it clearly and coded the UI perfectly. Now I need to work on the back end.
I'll also pay you nicely for those tips ^^
Hi Happy!
which one should I use? provider or getx
late reply but more for people viewing this video in the future, getx is trash. Stay away from it.
I'd be happy to see state_notifier + freezed + riverpod + flutter_hooks, as described by Remi Rousselet himself
I tried rivepod Is still in beta.
@@ismannyb8148 still in beta, but truly a game changer
Next RxDart
you r so funny