Skip to content
0:00 / 0:00

#flutter#dart#statemanagement

Flutter State Management WITHOUT external packages (ChangeNotifier, InheritedWidget and more)

David Serrano

6.1K subscribers • 5 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

4.2K views3 years ago2 recommendations

Mobile developmentSoftware designFlutter and React NativeMobile app architectureDesign patterns

David Serrano demonstrates how to implement state management in Flutter using only built-in classes like ChangeNotifier and InheritedWidget.

In this Flutter tutorial we dive into the world of State Management in Flutter, but this time I'll show you how it's possible to apply state management in Flutter without the need for external packages. Just using Flutter in-built classes like ChangeNotifier, InheritedWidget, and ListenableBuilder we can create a complete app that has a clear separation of concerns for widget visualization and classes that manage their state. ☺ *Support the channel:* Any donation is gratefully received, thank you! - Via my website: davidserrano.io/sponsor - Via YouTube's Super Thanks (⬆ Button labeled THANKS above ⬆) 🔔 *Subscribe:* Subscribe to my channel to see more videos like this: youtube.com/@david-serrano/noodlemx?sub_confirmation=1 📖 *Useful resources:* - Open source project created in this tutorial: github.com/svprdga/Flutter-State-Management-No-Packages 🔵 *Follow me:* Find out about my latest videos and publications: davidserrano.io/ twitter.com/svprdga hashnode.com/@svprdga dev.to/svprdga mastodon.social/@svprdga ⏳ *Timecodes:* - Introduction to Flutter in-built mechanisms for State Management - How to do State Management in Flutter without using external packages - Conclusion --- Music attribution: Future Technology Corporate | Business as Usual by Alex-Productions | youtube.com/watch?v=9BnFHBUzFUA Music promoted by onsound.eu/

Why it's here

2 people recommend this

What people say. Recommended as a great example of doing Flutter state management with built-in classes for complex use cases.

u/svprdgain r/FlutterDev • Recommends

State Management without packages - only Flutter built-in classes

u/-looknforgroup-in r/FlutterDev • Recommends

On “State management, back to the basics”

This video is also a great example of doing State Management with just InheritedWidgets by showing a more complex use case instead of the Counter App if someone is looking for examples! So far I've seen two ways I myself and others have used just InheritedWidgets for State Management: 1. Wrapping the InheritedWidget in a StatefulWidget and using the StatefulWidget to rebuild the InheritedWidget which then notifies the dependent widgets to rebuild. 2. Combining the InheritedWidget with ChangeNotifier/Value Notifier where the InheritedWidget holds data for the app, and you can update that data and access it from anywhere in the app and use the notifiers to update the specific widgets you wan…