Start thinking declaratively

Simple app state management

Differentiate between ephemeral state and app state

Data & backend

State management

Differentiate between ephemeral state and app state

Ephemeral state

App state

There is no clear-cut rule

This doc introduces app state, ephemeral state,
and how you might manage each in a Flutter app.

In the broadest possible sense, the state of an app is everything that
exists in memory when the app is running. This includes the app’s assets,
all the variables that the Flutter framework keeps about the UI,
animation state, textures, fonts, and so on. While this broadest
possible definition of state is valid, it’s not very useful for
architecting an app.