Shared state

When several widgets need the same data, the state is lifted up to a common ancestor, which passes it down through parameters or makes it available through a mechanism such as InheritedWidget or Provider. This avoids duplicating the state and letting it get out of sync between screens.

Related concepts

The whole glossary