Let's say we need 3 providers for one widget. So instead of wrapping a widget with Consumer with Consumer with Consumer... we can wrap it with 'Consumer3' for example like this: Consumer3( builder: (context, oneProvider, anotherProvider, thirdProvider, child) { return MyCustomWidget( someValue: oneProvider.someValue, anotherValue: anotherProvider.importantValue, oneMoreValue: thirdProvider.somethingElse, ); } According to documentation we can go up to Consumer6 like this.
That solves a lot of problems, thank you for sharing. I will pin it to the comments section so everyone will see it early. To make it easier readable, here is a carbon link: carbon.now.sh/k4Sf4SWoqQurH3oXHwEk
@@FlutterExplained And also for VSCode we can use Pubspe assist extension for adding a package. It becomes so simple to add it. Just cmd+P and search Pubspec assist add the dependency. And type the name and done.
This is the best provider video I watched. Using the todo as a teaching method made it really easy to understand provider. Keep using it and the zoom level on the code.
Great episode! I liked how you explain every line you write, not too fast, not too slow, perfect base. just excellent! BTW, if my list is built from firestore, should I use change notifier provider (with subscription) or stream provider ?
Very good question, in general you can do both, but because you receive a stream from Firebase usually it is easier to directly use the Stream Provider.
@@FlutterExplained can i ask where i can find some official documentation about Flutter? i have some deep questions about Provider package... pub.dev/packages/provider here is not complete; i need a list of how much provider there is (such FutureProvider, StreamProvider... and so on). If cannot have a complete prospect of whats there are, how much i can do with all those different provider, i cannot use in a very confortable mode......... And now there is my super deep question: in a Flutter project, if i want to a simple Stream; how can I spread it in a widgetTree? If i use Provider instead StreamProvider.... or i use Provider to spread a Future results????? There is some problem??? ThankSoMuch!
Thanks. Nice example. Looking forward to the Riverpod-video. But could you also make a video like this on the ProxyProvider and also how that is implemented in Riverpod? The TODO's are helpful by the way.
great video. It help me a lot. However, I think that the app in the video is still working with the setstatescreen instead of the provider screen where we were working on
Would you recommend provider state management for firebase app? I used it for my project and i'm not sure if I done it right by putting the provider inside a stream builder. All the example for the provider read and watch method is always triggered by onPressed or onValue changed event. But what is the event of new incoming stream called?
That is a fantastic question. The event of a new incoming stream is going through the listen to the function of the stream itself, inside of that you can access the value of the stream and call the provider method that you want to execute. Alternatively you can use the await ... for loop for the stream to fulfil and handle the change.
Proceed to the information that the Provider should not be used in medium and large projects as a state manager because of the limitation of ChangeNotifier in relation to the number of listiners that it can answer? Sorry for bad writing, I don't speak English
Let's say we need 3 providers for one widget. So instead of wrapping a widget with Consumer with Consumer with Consumer... we can wrap it with 'Consumer3' for example like this:
Consumer3(
builder: (context, oneProvider, anotherProvider, thirdProvider, child) {
return MyCustomWidget(
someValue: oneProvider.someValue,
anotherValue: anotherProvider.importantValue,
oneMoreValue: thirdProvider.somethingElse,
);
}
According to documentation we can go up to Consumer6 like this.
That solves a lot of problems, thank you for sharing. I will pin it to the comments section so everyone will see it early. To make it easier readable, here is a carbon link: carbon.now.sh/k4Sf4SWoqQurH3oXHwEk
thanks mivoligo
Visualizing or diagramming the problem and visualizing the solution before jumping into coding would make your videos a lot easier to me.
That sounds like a great idea, thanks for the feedback I try to create a fitting diagram for the future videos.
The video was very good. was able to understand the provider in seconds. I would suggest everyone see this video.
Fantastic, I love that it helped you.
@@FlutterExplained And also for VSCode we can use Pubspe assist extension for adding a package. It becomes so simple to add it. Just cmd+P and search Pubspec assist add the dependency. And type the name and done.
This is the best provider video I watched. Using the todo as a teaching method made it really easy to understand provider. Keep using it and the zoom level on the code.
Thanks for your feedback it is super motivating :).
FINALLY AFTER SO MUCH BLOC AND SETSTATE I CAN USE PROVIDER-PERFECTLY EXPLAINED!! :)
Fantastic, great to hear that it helped you :)
Nice. Good teacher. Thanks a lot. from Bangladesh.
Amazing thank you so much for your kind words.
Thank you for making this. It took me multiple videos but this one really helped make sense of it all. Appreciated.
Excelent video. So far I have used callback functions and "passing data by refernece" but this looks nicer.
I watched many tutorial videos but got it in this video. Thanks man!
Great! I am really happy that it worked for you.
Very good explanation and presentation!! Many thanks
Glad it was helpful!
wow, nice video. I like the way you explained everything clearly. Thank you.
Great explanation!
Thank you
Thank you for making this video.I liked the step-wise process.Easy to visualize
Thank you I will try to keep it like that and bring more of this step to step tutorials :)
Thanks for making this tutorial. Its clear my doubts.
I love to hear that :)
thanks man for the example it was so clear keep on
Thank You! It was very interesting!
Great explanation
Finally, I understood Provider Flow! Thanks a lot, Sir for TODOs method. 👍🏻 👍🏻 LIKED & SUBSCRIBE.
Very clear explanation...thanks... :)
You are welcome :)
Great episode! I liked how you explain every line you write, not too fast, not too slow, perfect base. just excellent!
BTW, if my list is built from firestore, should I use change notifier provider (with subscription) or stream provider ?
Very good question, in general you can do both, but because you receive a stream from Firebase usually it is easier to directly use the Stream Provider.
best explanation that i see on youtube! how much video there is :(
Wow, thanks! I am really happy that it helped you :)
@@FlutterExplained can i ask where i can find some official documentation about Flutter?
i have some deep questions about Provider package...
pub.dev/packages/provider here is not complete; i need a list of how much provider there is (such FutureProvider, StreamProvider... and so on).
If cannot have a complete prospect of whats there are, how much i can do with all those different provider, i cannot use in a very confortable mode.........
And now there is my super deep question:
in a Flutter project, if i want to a simple Stream;
how can I spread it in a widgetTree? If i use Provider instead StreamProvider.... or i use Provider to spread a Future results?????
There is some problem???
ThankSoMuch!
Great, thank you very much!
Glad it was helpful!
Thanks. Nice example. Looking forward to the Riverpod-video. But could you also make a video like this on the ProxyProvider and also how that is implemented in Riverpod? The TODO's are helpful by the way.
Thanks for the video :)
You are most welcome :)
thank you, nice content
Thank you for your kind words :)
great video. It help me a lot.
However, I think that the app in the video is still working with the setstatescreen instead of the provider screen where we were working on
Would you recommend provider state management for firebase app?
I used it for my project and i'm not sure if I done it right by putting the provider inside a stream builder. All the example for the provider read and watch method is always triggered by onPressed or onValue changed event. But what is the event of new incoming stream called?
That is a fantastic question. The event of a new incoming stream is going through the listen to the function of the stream itself, inside of that you can access the value of the stream and call the provider method that you want to execute. Alternatively you can use the await ... for loop for the stream to fulfil and handle the change.
How to call initstate if we are using stateless widget in this architecture?
would like to see an example with an auth provider, specifically for firebase
Proceed to the information that the Provider should not be used in medium and large projects as a state manager because of the limitation of ChangeNotifier in relation to the number of listiners that it can answer?
Sorry for bad writing, I don't speak English
Can you make a video on hook in flutter.