跳到主内容

状态管理

如何构建一个应用程序来管理流经其中的数据状态。

如果你已经熟悉响应式应用中的状态管理,可以跳过本节,尽管你可能想查看一下 不同方法的列表

A short animated gif that shows the workings of a simple declarative state management system. This is explained in full in one of the following pages. Here it's just a decoration.

在探索 Flutter 的过程中,总会遇到需要在屏幕之间或整个应用程序中共享应用状态的时候。你可以采用许多方法,也有许多问题需要考虑。

在接下来的页面中,你将学习在 Flutter 应用中处理状态的基础知识。