Premium Only Content

Flutter State Management using InheritedWidget for Journal App
In this Flutter video, you are going to take a look at how to use the InheritedWidget for State Management - No Packages.
• How to use InheritedWidget to pass data from a parent (ancestor) widget to child (descendant) widgets in the widget tree
The Problem:
- Journal app has a mood selector value to be available to all pages.
- All pages need to read selected mood from the parent page.
The Solution:
- Use the InheritedWidget to allow child pages (widgets) to access the parent page selected mood by going up the widget tree.
The InheritedWidget is immutable and allows child widgets to access data (state) above in the widget tree
1. Create a class that extends InheritedWidget
2. Add fields to contain data
3. Add the of() method to access the InheritedWidget from child widgets
4. Add the updateShouldNotify() method to notify (via Flutter framework) widgets to rebuild if the data changed
How it Works:
- InheritedWidget – The InheritedWidget is great to pass data from an ancestor widget to descendent widget. The InheritedWidget is immutable and the data (attributes) are final (cannot change) and the Flutter framework rebuilds the InheritedWidget to refresh with new data.
GitHub: https://github.com/JediPixels/journal_inheritedwidget
Twitter: https://twitter.com/JediPixels
Looking for Updates: https://JediPixels.dev
Blog Article:https://jedipixels.dev/flutter-state-management-using-inheritedwidget-for-journal-app
#flutter #fluttertutorial #dart
-
UPCOMING
The Nunn Report - w/ Dan Nunn
48 minutes ago[Ep 763] The Democrat Death Cult – Party of Violence| Judicial Coup & Real Insurrection
22 -
UPCOMING
Owen Shroyer
7 minutes agoOwen Report - 10-06-2025 - Debut Episode Of Your New Favorite Talk Show
-
56:24
DeVory Darkins
3 hours ago $29.67 earnedFederal Judge issues shocking order against Trump as Chicago Mayor pulls insane stunt
71.1K130 -
1:24:59
Sean Unpaved
3 hours agoPoll Plunge & Mile-High Mayhem: Texas & Penn State Crash, Sunday's Fireworks, & Broncos Stun Eagles'
26.7K1 -
9:24
Ken LaCorte: Elephants in Rooms
1 day ago $0.56 earnedThe secret of Indian store owners
3.74K2 -
8:30
Millionaire Mentor
1 day agoJames Comey PANICS After Pam Bondi Reveals What’s Coming Next
3.92K9 -
LIVE
Jeff Ahern
1 hour agoMonday Madness with Jeff Ahern
131 watching -
8:07
Michael Heaver
4 hours agoBritain CANNOT Afford To Ignore This
5.92K2 -
2:55:02
Right Side Broadcasting Network
6 hours agoLIVE REPLAY: White House Press Secretary Karoline Leavitt Holds a Press Briefing - 10/6/25
93.2K16 -
1:00:32
Dear America
3 hours agoEp 4 Graham Allen Show
34.2K15