Flutter Provider and ChangeNotifier With Listener for State Management | Example
HTML-код
- Опубликовано: 8 фев 2025
- We will learn how to use flutter provider and change notifier for state management and passing data. Previously we saw how to pass data using setState and callback. Flutter provider is important concept for Bloc and Cubit. It helps you to use Provider.of() to call method for changes and updating variable.
See about setState and Callback here
• Flutter setState() and...
i watching from turkey, you are best. I am learning flutter with you.
Thank you
As always you are the best :)
Thanks again!
Hello sir please can you make complete tutorial with project with provider like the way you did for getx in flutter.
Please. Thank you
Sure I will.
so Provider with Getx which is better for real production?
Hi, I like both. I have used both for production. Getx is easy to start with and help you build app faster. It's also very efficient. Saves time and money. With BLoc or Other state management pacakges, you can see the underline code. They helps you to really understand how flutter and dart work. They help you to understand the Flutter framework better. Getx is easy and fast and productive. And others let you see the flutter framework more. That's why I love both.
Great answer
Hi teacher Thank u so much
You are very welcome
And for multiple provider use multiprovider:
MultiProvider( providers:[ Provider(create: (_) => Something()), Provider(create: (_) => SomethingElse()), Provider(create: (_) => AnotherThing()), ], child: someWidget, )
Thank you althafar Ali. Yes, we could do that as well for a bit complex app.
@@dbestech Bro thank you as well for your contribution ✨
@@althafaralijaffarali1803 You are welcome
Walikum Asalam Ya Akhi
Selamin aleküm Bruder
what is the difference between provider and stremprovider
thanks.
Stream provide comes with way better features. Came across it while watching some videos on Riverpod for state management.
*StreamProvider
Thank you bro
You are welcome. Have you learned something? Ya Suo
How I can solve problem black Screan in flutter when use provider
Not sure what you are talking about
its very confusing topic
hi
Hi korean friend, thanks for watching.