What is state management?
State management is simply a technique, or multiple techniques, used to take care of the changes that occur in your application. When your application gets bigger, you need to apply a proper state management approach in order to be able to keep track of every change inside your application and make the application respond to the user accordingly. This can include the following:
- Responding to user interactions
- Keeping track of data throughout the different screens in the application
- Changing data points in the application at one place and handling the response at other points in the app that read that data
This book will show you different techniques of managing states in your Flutter application, ranging from very basic ways, such as setState
(pushing changes to the UI through a function call), to advanced approaches, such as BloC
(a business logic component, used to decouple the UI from business logic) and provider
(a community-favorite technique used widely among a variety of applications).