状态 (State) 管理参考

状态管理是一个复杂的议题。你可能遇到此教程暂未解答的问题,或者与此教程结果不符的现象。

State management is a complex topic. If you feel that some of your questions haven’t been answered, or that the approach described on these pages is not viable for your use cases, you are probably right.

通过下面的链接了解更多的信息,其中有很多信息都是由 Flutter 社区提供。

Learn more at the following links, many of which have been contributed by the Flutter community:

总体概览

General overview

setState

InheritedWidget & InheritedModel

Provider & Scoped Model

Redux

BLoC / Rx

MobX