跳到主內容

重大變更與遷移指南

這是一份關於 Flutter 重大變更的通知和遷移指南合集。

正如重大變更政策中所述,我們有時會發布指南,以幫助您在重大變更後遷移程式碼。

要接收有關未來重大變更的通知,請加入 Flutter announceDart announce 小組。

如果在升級 Flutter 後遇到 Dart 錯誤,請考慮使用 dart fix 命令來自動遷移您的程式碼。雖然並非所有重大變更都支援此方式,但許多變更都可以透過它自動處理。

為避免受到未來 Flutter 版本的影響,請考慮將您的測試提交到框架的 測試登錄檔 中。

各版本重大變更

#

以下是可用的指南。它們按釋出版本分類,並按字母順序排列。

尚未釋出至穩定版

#

在 Flutter 3.44 中釋出

#

在 Flutter 3.41 中釋出

#

在 Flutter 3.38 中釋出

#

在 Flutter 3.35 中釋出

#

在 Flutter 3.32 中釋出

#

在 Flutter 3.29 中釋出

#

在 Flutter 3.27 中釋出

#

在 Flutter 3.24 中釋出

#

在 Flutter 3.22 中釋出

#

在 Flutter 3.19 中釋出

#

在 Flutter 3.16 中釋出

#

在 Flutter 3.13 中釋出

#

在 Flutter 3.10 中釋出

#

在 Flutter 3.7 中釋出

#

在 Flutter 3.3 中釋出

#

在 Flutter 3 中釋出

#

在 Flutter 2.10 中釋出

#

在 Flutter 2.5 中釋出

#

回退 2.2 中的變更

#

以下重大變更在 2.2 版本中被回退

iOS 和 Android 上的網路策略

引入版本:2.0.0
回退版本:2.2.0

在 Flutter 2.2 中釋出

#

在 Flutter 2 中釋出

#

在 Flutter 1.22 中釋出

#

在 Flutter 1.20 中釋出

#

在 Flutter 1.17 中釋出

#