Chapter 2: The Core Building Blocks of State Management
The next four chapters are about different state management techniques, starting from the very basic implementations to diving deep into all sorts of advanced techniques.
In this chapter, we will cover the core building blocks of state management in Flutter. We will learn about basic techniques, which include the setState
, InheritedWidget
, and InheritedModel
classes to manage states in Flutter. We will also look at how these approaches are utilized in code with actual implementations.
We will look into the following topics in this chapter:
setState()
– Widget-specific state managementInheritedWidget
– Top-down approachInheritedModel
– Within the aspect of updating the desired widgets only
This chapter is going to build up your understanding of how basic approaches can be used to detect and track the changes inside a Flutter application. By the end of this chapter, you should...