← 返回首页
State management Skip to main content

docs.flutter.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.

Learn more OK, got it

State management

How to structure an app to manage the state of the data flowing through it.

Note

If you have written a mobile app using Flutter and wonder why your app's state is lost on a restart, check out Restore state on Android or Restore state on iOS.

If you are already familiar with state management in reactive apps, you can skip this section, though you might want to review the list of different approaches.

As you explore Flutter, there comes a time when you need to share application state between screens, across your app. There are many approaches you can take, and many questions to think about.

In the following pages, you will learn the basics of dealing with state in Flutter apps.