...

/

States of an Application

States of an Application

Learn to manage your application’s state in Flutter.

What is state?

State refers to data that changes during the life cycle of our application. It’s the data your application manipulates, and the user interface (UI) is generated based on the current state of our app.

State objects are persistent between calls to the build() method, allowing them to remember information between UI rebuilds.

Press + to interact

Categories of state

We can categorize states in Flutter into two categories:

  • Ephemeral state
  • App state

Ephemeral state

Ephemeral state, also known as UI state or local state, is the state contained within a single UI widget. Such ...