跳到主内容

状态管理

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

如果你已经熟悉响应式应用中的状态管理,可以跳过本节,但你可能需要回顾一下 不同的方法列表

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 应用中处理状态的基础知识。