跳到主內容

狀態管理

如何構建一個應用來管理其中流動的資料狀態。

如果你已經熟悉響應式應用中的狀態管理,可以跳過本節,但你可能需要回顧一下 不同的方法列表

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 應用中處理狀態的基礎知識。