跳到主內容

狀態管理

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

如果你已經熟悉響應式應用中的狀態管理,可以跳過本節,儘管你可能想檢視一下 不同方法的列表

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