7
Basic State Management
As apps grow, managing the flow of data through those apps becomes a more complex and important issue. The Flutter community has devised several solutions to deal with state management. All these solutions have one aspect they share: the separation of UI and business logic.
Before diving into any advanced state management solutions, we will lift the state of the app to a higher level.
In this chapter, you are going to build a to-do note-taking application. In the application, users will be able to create to-do lists that contain many tasks. Users will be able to add and complete their tasks.
We will cover the following recipes:
- Model-view separation
- Managing the data layer with
InheritedWidget
andInheritedNotifier ...
Get Flutter Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.