macOS 與 Windows 上的執行緒合併
了解 Flutter 3.35 在 macOS 與 Windows 上的執行緒變更。
摘要
#Flutter 3.35 預設在 macOS 與 Windows 上合併 UI 與平台執行緒。
背景說明
#最初,Flutter 會分別使用不同的執行緒來產生 UI 畫面與與原生平台互動。
這種分離執行緒的設計,會導致 Flutter 應用程式與插件無法透過 Dart FFI 與必須在平台執行緒上呼叫的原生 API 進行互操作。
變更說明
#Flutter 3.35 預設在 macOS 與 Windows 上合併 UI 與平台執行緒。
這與 iOS 與 Android 一致,這兩個平台的執行緒已於 Flutter 3.29 預設合併。
遷移指南
#執行緒合併應不會影響您的應用程式。
如果您懷疑執行緒合併導致應用程式出現問題,請在 Issue 150525 提出反饋。
時程
#
合併於版本:3.33.0-0.0.pre
穩定版釋出:3.35
參考資料
#相關議題:
相關 PR:
Unless stated otherwise, the documentation on this site reflects Flutter 3.44.0. Page last updated on 2026-06-14. View source or report an issue.