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
-
6:29
Clickbait Wasteland
16 hours ago $0.15 earnedCUOMO vs ZOHRAN: Who do New Yorkers Want as the Next Mayor?
3.49K7 -
22:10
IsaacButterfield
9 hours ago $0.45 earnedUnhinged White Woman Hates White People
8.25K13 -
1:04:05
Timcast
2 hours agoThe TAMURA Conspiracy, Theory Says Blackstone WAS The Target Over Israel, NOT NFL
149K78 -
2:15:27
Steven Crowder
5 hours ago🔴 NYC Shooting Exposes Massive Hypocrisy From Mamdani & the Left
339K318 -
1:36:20
The Mel K Show
3 hours agoMORNINGS WITH MEL K - An Engaged Fed Up Citizenry is Finally Moving the Needle Towards Accountability 7-29-25
38.7K16 -
1:17:30
Rebel News
2 hours agoByelection ballot drama, Ford flips on jobs for asylum seekers, Pipeline problems | Rebel Roundup
13.7K2 -
59:23
The Tom Renz Show
2 hours agoThe Manhattan Shooting, Vax Accountability, & Trump's Trade Deals In Crypto World
13.9K4 -
48:14
TheAlecLaceShow
2 hours agoGuest: George Papadopoulos | NYC Shooting In A Gun Free Zone | The Alec Lace Show
8.55K1 -
LIVE
LFA TV
17 hours agoLFA TV ALL DAY STREAM - TUESDAY 7/29/25
2,799 watching -
1:10:32
The Rubin Report
4 hours agoMidtown Tower Shooting Causes Resurfaced Bill Maher Clip to Go Viral
70K88