تقييمات الطلاب
( 5 من 5 )
١ تقييمات
فيديو شرح 95-Flutter State Management-Provider-read extension method & Provider.of(context,listen false)(Arab) ضمن كورس Flutter شرح قناة Code2Start - Mohamed Fathy Taha، الفديو رقم 95 مجانى معتمد اونلاين
In this lecture I'ill talk about how to use provider read extension method.
Obtain a value from the nearest ancestor provider of type T.
This method is the opposite of watch.
It will not make widget rebuild when the value changes and cannot be called inside StatelessWidget.build/State.build.
On the other hand, it can be freely called outside of these methods.
If that is incompatible with your criteria, consider using Provider.of(context, listen: false).
source code
https://github.com/code2start/Flutter-State-Management/tree/lesson18-provider-lesson5