Provider 📱 Simple State Management • Flutter Tutorial
Vložit
- čas přidán 9. 08. 2023
- 📱 Flutter Courses • mitchkoko.app/
💰 Hire Me / Book Consultation Call • mitchkoko.gumroad.com/l/CallW...
❤️ True Fans • / mitchkoko
~ ;
📱 INSTAGRAM • / createdbykoko
🐦 TWITTER • / createdbykoko
📱 TIKTOK • / createdbykoko
🎧 FLUTTER POD • / @flutterpod
💬 JOIN DISCORD SERVER • / discord
💻 GITHUB • github.com/mitchkoko/
🖥 WEBSITE • mitchkoko.app/ - Věda a technologie
🔥 Flutter App Templates • mitchkoko.app/
📱 Flutter Minimal Social App • mitchkoko.gumroad.com/l/MinimalSocialApp
📱 Flutter Minimal Ecommerce App • mitchkoko.gumroad.com/l/MinimalEcommerceApp
Apps I've made using Provider:
🥑 Grocery Shop App • czcams.com/video/uSljGJGSl6w/video.html
📱 Coffee Shop • czcams.com/video/RPvhoghXn54/video.html
👟 Sneaker Shop • czcams.com/video/UcwsuZP071Y/video.html
I hope this helps you ✌🏾💜
plz make video on API using provider (get ,post ,push metods)
@@kashaf8863 Count me in! 😀
Bro carrying flutter tutorials on CZcams right now ... Keep up the good work! 👍
Much awaited State Management series from Koko. You have helped me improve my UI skills to a great level and its great to see you getting more into logic and backend.. Hope to see a lot more videos on State Management and best coding practices, architectures, etc.
This may as well be THE best explanation video on privider I have seen. Straight and simple. I cant wait for the further implementation in the sushi app! Keep it coming!
thank you haha sushi app coming up💜
Simple & straightforward, great job Koko!
Thank you for this, I was writing flutter relying on setState a lot but now that I am working on bigger projects, I want to move on to using either provider or bloc.
Thank you again.
In my case, I won't call the "CounterModel" class "CounterModel" because it isn't a model. This is where you do the business logic, data fetching, and other interactions with external resources like APIs or databases. If you know what a data class is then that's a model, models define the structure of your app's data like "Order", "User" and more but a class that provides data and handles the business logic for your Widget(s) should be called a "Service Provider", I mean "CounterService" while you could have a "CounterModel" if your counter is more than just an "int".
You made the 👍 best, wish I saw this while I was learning instead of reading the entire documentation 🤣🤣
Koko did it again. Much appreciated tutorial
Some people have great brain,i don't know why I am not able code like them ,god gifted people 😭
keep working ! find out what works for you and stay positive you’ll get there
Practice matter
Is practice and practice bro, don't give up
Once upon a time i don’t even understand what is variable but now Alhamdulillah i learned a lot. Just learn everyday and don’t lose hope that's it
it’s all about practice. Start practising and you will understand that most of those people are not god gifted but became this good just because they have worked hard and continuously and given priorities to programming in their life.
Thank you so much!!! We really needed this video :)
Finally! Thanks, bro!
Thank you so much for this tutorial ❤
Thank you for making this. I'm new to flutter and your videos are a big help!
My pleasure :) how is it going so far?
You video are really quality thank man. Love u
i love you brother. Your tutorials are easy to understand. thnx
Thanks Mitch Koko, it is simple and easy to understand. Regards.
thank u very much for explaining it in simple way with the default project
i spent my one entire day scrolling youtube to learn this concept but still confused what the heck they did coz i can't do it along as there project is different
doing it side by side and manipulating really helps me to grasp it
nice video thank you so much 🙏🏼🙏🏼🙏🏼
FINALLY thank you
❤ for making state managed app with provider
Your explanation is really good - Provider has been confusing me quite a bit - but I can't wait to see your video covering the application of Provider in the sushi app. I feel like I understand the basics, but am really struggling with applying Provider in a complex app and examples I found on the internet aren't really good at explaining it either...
thanks for making this video i just comment last time about this topic and you make video thanks bro
Thanks for this useful video. Please make Twitter sign in😊
Thanks a lot, Finally I understood what is the provider😅
Greet video mitch! Could you make a neumorphic nav bar tutorial. That design trend must not die!
thanks
For the onPressed, I think you could just put the value.increment tear-off in there, right?
onPressed: value.increment,
Bravo. Please have a short video on multi-provider. THX
Can you do one for Riverpod too?
Thanks
How to use if am using multiple classmodels and material route page?
Video on flutter common erros
Hi
Please do a video on riverpod ❤❤
is there any way to wrap the Scaffold widget instead of ctrl + x?
Can you make a video on multiple providers
can you please do a river pod v2, reading and updating a variable and thus state.
Great vid! explained it really simple
But in most apps there are multiple states, how do you wrap it all in your widget?
What about the main(), do you add the same changeNotifier to every single provider?
Could you please apply the stacked package?
thanks Koko,Do it have any other common uses now?
How to consume more than one model in a page or in a widget?
Can I do state management by using hive db
bro plz make some course on bloc u make very short which is of no use
I don't know why I never tried to learn Bloc at all, maybe because I think the provider does all the magic so well but I'd love to see a video from Mitch Koko
💜
Another question, in this case for improving performance instead of wrapping all the scaffold, we also could’ve wrapped only the text Widget right?
Knowing that the text() is also a widget and itself has a build function to be called by notifyListeners(). Also with this modification i think we could get rid of the statefull widget and use stateless
you are correct!
What's the point of using state management over statefulwidget?
hey can u make a video on streams too
Is it possible to use provider with getx in same app as state management
The provider itself is NOT a state manager. Instead the author here leverages ChangeNotifier’s functionality for the sake of state management needs. Isn’t this clear? Even Remi Rousselet - the author of Provider said his tool is not a state manager. Provider just provides objects down the widget tree.
can you make video Bloc ?
brother backend full video please
i have a question do we really need consumer to make it work like we can do the same thing with getter and setter
can u explain a bit why this not that approach
Can you explain bloc please?
Can you show state management for flutter web?
I tried provider, everytime i reload provider go missing.
Bro I need riverpod provider concepts
Great tutorial! I have a question, why did you continue to use the MyHomePage as a stateful widget? Couldn't we use a stateless widget now that we have the provided sat up.
From what I've gathered, the homepage needs to be a stateful widget so as to update when it receives the change notification .
class ChangeProvider extends ChangeNotifier {
int abc = 10;
void updated() {
abc++;
notifyListeners();
}
} why we have used the getter and setter method where we can achieve our target without them?
Hi Mitch thank you for this. Please I didn't understand what you did from 4:33, you explained that we can access all the methods through the "value", like when you did value.count.toString(), I didn't understand final counter = context.read...
could we have done value.increment. please could you explain?
When you're inside the builder, you CAN just do value.method() with no problem.
However, if you're outside the builder and don't have access to the 'value' argument, you can still access it's methods by context.read().method();
This especially useful when you want to just execute some method of the model class but don't want to know it's value (in that case wrapping it in Consumer() will unnecessarily redraw it which is wasteful), so you use this instead.
2:44 Why do we need to create the getter? Code works same way without it.
you need it when you getting the value of counter
The splice samples go too hard