Flutter Multi Provider Simply Explained
Vložit
- čas přidán 27. 07. 2024
- Flutter MultiProvider explanation
👉 Pre Sign Up to Flutter Learning Platform :
learncodecode.com/fluter-lear...
🔥 Check out my courses - zukunf.com/courses
🎨 Source code:
pub.dev/documentation/provide...
⏰ Timeline:
00:00 - Introduction
02:07 - How to solve 2 Providers with same type
04:31 - Summary
🦋 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
You're essentially the best teacher on CZcams and I'm saying this with confidence. You make learning fun and interactive and you keep students engaged. Keep it up. I like your channel.
Thx. Next ProxyProvider 3 levels deep?
"If you want more very short videos"... then the nextr ecommended video ind the endcard is "10 Flutter Apps in 10 hours" :-)
Thanks for the good videos!
Thanks, best explanation
thank you. Very clear explanation
Very good explanation!
It was helpful thank 's very much
Good explanation man ❤️
very helpful
Bro need more video about provider. Now it's little bit clear but I wanna know advance provider like future and many more.
I have a playlist on providers: czcams.com/play/PLgG0-B2KlM1sr3MRmqaV2tVKJf_7Zk7f3.html
awesome
Just find out m still a child😂!thanks man
really good and simple
Glad you like it!
hi i get very helpful...but how can i changed after new screen call chagnge notifier with provider using mvvm
for example
i am creating one screen and calling api and getting response like lists...after click on one item from list
i want to call new screen and want to call new api to get different data list in
so how can i change notifier?
how many providers can be used within a multiprovider?
QUALITY CONTENT
Do you like provider instead of other state managment solutions better?
I think provider with change notifier is a good start for many developers. If the app gets complicated, then maybe looking at other state management is better
Thank you for the nice explanation!! :)
Glad it was helpful!
Advance sorry for long comment...
Is it possible to create custom textstyle class/function, Just like we create a custom widget, which we can use at many places in the code ... If possible plz make a video on these kind of topics...
It can come helpful in a suitation like in themedata we want to style - textTheme, primarytextTheme, accenttextTheme
Each theme contain headline 1-6 etc...
I guess u get the point .....
Its possible using Provider, although I havent figured it out as yet. An alternative to using Provider for your use case is to create the class and declare a Singleton of that class, which can then be used to access your custom theme data anywhere in the app. I read somewhere though, that it is not recommended to use a Singleton when using the Provider package. However, I am not sure why this is the case.
If using a Singleton:
class ClassName {
static const Color someColor = Colors.blue;
ClassName._();
}
Then in the screens, eg:
Container(color: ClassName.someColor, child: childWidget)