Student Reviews
( 5 Of 5 )
1 review
Video of 64- Flutter State Management - InheritedWidget Counter Example (Arabic) in Flutter course by Code2Start - Mohamed Fathy Taha channel, video No. 64 free certified online
Base class for widgets that efficiently propagate information down the tree.
To obtain the nearest instance of a particular type of inherited widget from a build context, use BuildContext.dependOnInheritedWidgetOfExactType.
Inherited widgets, when referenced in this way, will cause the consumer to rebuild when the inherited widget itself changes state.
Source code
https://github.com/code2start/Flutter-State-Management/tree/Lesson2InheritedWidget