State Management with InheritedWidget
Learn to use InheritedWidget to manage the state in your Flutter application.
As our app gets bigger, our Flutter widget tree gets deeper. Passing data within the widget tree gets more confusing and trickier.
InheritedWidget
is a Flutter widget that allows the state to be shared down the widget tree. It defines the state at the root of a tree or subtree that can be accessed by all children using the context
object.
Get hands-on with 1400+ tech skills courses.