Basic State Management

As apps grow, managing the flow of data through the app becomes a more complex and important issue. The Flutter community has struggled with this problem. Due to this, they have devised several solutions to deal with state management. All these solutions have one aspect they share: the separation of model and view.

Before diving into any state management solutions (BLoC, MVVM, Redux, and so on), we will explore the elements that they all shareEach of these patterns divides apps into layers. These are groups of classes that perform specific kinds of tasksLayer strategies can be applied to almost any app architecture. Once you've mastered the basics, learning any of the more advanced patterns will be easy.

In this ...

Get Flutter Cookbook 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.