Jump to ratings and reviews
Rate this book

Flutter Practice Patterns: State Management

Rate this book
In any framework, perhaps the most difficult thing is managing the state of your application. With this guide, you'll learn the various internal state management libraries in Flutter and when to use each before learning more complex state management patterns with libraries utilising MobX and GetIt.

Flutter State Management PracticesStarting with the fundamentals and taking concrete examples, the guide will build up knowledge on state management patterns and how to apply those patterns.

Through fundamental Flutter state management it builds up using the concepts of Store, Action, Reaction using MobX as well as service locator and service dependency injection using GetIt to show how to build actions in lower level widgets to update widgets higher in the tree.

With Go Router, we bring state to urls for those more familiar with the web. Using simple key states in Go Router, this information can be pushed to MobX stores to retrieve key information that can be used to bootstrap stateless widgets.

Not all state changes are a result of user actions. Looking at streams we can show how to use Timers to cause reactions based on listening to reactive streams.

The final project in the book explores Firebase and how to create applications that react to external stream updates using real time sync of no sql collections and documents using Firestore. This technique was an important pattern used to cause stimuli from external systems (like NPR cameras for example) that can cause a backend update to Firestore. Your Flutter app can listen for this updated and display the changed state.

338 pages, Kindle Edition

Published July 28, 2022

About the author

Quentin Ng

1 book

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
0 (0%)
4 stars
1 (100%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.