Flutter 3.10.0 發行說明
本頁為 3.10.0 的發行說明。
如需後續錯誤修正版本的資訊,請參閱我們的 CHANGELOG。
框架(Framework)
#- 調整方向性焦點遍歷(directional focus traversal) by @gspencergoog in 116230
- [framework] 讓 ImageFiltered 成為 repaint boundary by @jonahwilliams in 116385
- [CP] 修正 Snackbar TalkBack 回歸問題 by @esouthren in 116417
- 新增 widget of the week 影片 by @tvolkert in 116451
- 透過以二進位格式編碼資產清單(asset manifest)取代 JSON,加速首次資產載入 by @andrewkolos in 113637
- 改善 Flex 版面配置註解 by @loic-sharma in 116004
- 在使用不同格式的 Web 平台上,_findResponsibleMethod 不再解析 stack traces by @jason-simmons in 115500
- 支援主題化
CupertinoSwitchs by @guidezpl in 116510 - 修正 MenuAnchor padding by @gspencergoog in 116573
- 新增 ListenableBuilder 並附範例 by @gspencergoog in 116543
- Time picker 前置作業 by @gspencergoog in 116450
- Date picker 針對 currentDate 提供在地化與特殊標籤 by @harperl-lgtm in 116433
- 在 semanticsconfiguration 新增 API,以決定如何合併子 semanticsConfigurations by @chunhtai in 110730
- 還原「以二進位格式編碼資產清單以加速首次資產載入」 by @CaseyHillers in 116662
- 再次套用「Android 上為 backbutton 與 closebutton 使用 semantics label」 by @chunhtai in 115776
- 還原「Android 上為 backbutton 與 closebutton 使用 semantics label」 by @chunhtai in 116675
- 新增 LookupBoundary by @goderbauer in 116429
- 再次套用「Android 上為 backbutton 與 closebutton 使用 semantics label」 by @chunhtai in 116676
- 修正 TabBarIndicator 在 label size 且有 label padding 時位置錯誤 by @zmtzawqlp in 116398
- 在
CupertinoSliverNavigationBar上於 over scroll 時新增 large title 放大效果 by @ivirtex in 110127 - 有 prefix/suffix icons 時,更新 text field 輸入寬度 by @hangyujin in 116690
- 為
ListTile新增 Material 3 支援 - 第一部分 by @TahaTesser in 116194 - MediaQuery 改為 InheritedModel by @moffatman in 114459
- 在 Material 中新增 LookupBoundary by @goderbauer in 116736
- 浮動游標(floating cursor)清理 by @moffatman in 116746
- 還原「在 semanticsconfiguration 新增 API,以決定如何合併子 semanticsConfigurations」 by @CaseyHillers in 116839
- 更優雅地處理授權載入失敗 by @Hixie in 87841
- API 文件中禁用「simply」一詞 by @Hixie in 116061
- 修正
NavigationBar在非預設NavigationDestinationLabelBehavior下的 ripple 效果 by @TahaTesser in 116888 - 在 Overlay 中新增 LookupBoundary by @goderbauer in 116741
- [framework] 讓 opacity widget 建立 repaint boundary by @jonahwilliams in 116788
- 還原「為
ListTile新增 Material 3 支援 - 第一部分」 by @HansMuller in 116908 - 修正 MediaQuery.paddingOf by @moffatman in 116858
- InteractiveViewer 支援離散式觸控板平移(trackpad panning) by @moffatman in 112171
- 移除重複的 fix 規則 by @Piinks in 116933
- [framework] 讓帶有 filterQuality 的 transform 成為 repaint boundary by @jonahwilliams in 116792
- 修正 NestedScrollPosition 慣性取消時的 scroll 跳動問題 by @moffatman in 116689
- 移除 RenderEditable textPainter height 的 hack by @LongCatIsLooong in 113301
- 移除 NullThrownError 的使用 by @mit-mit in 116122
- 新增 AppBar.forceMaterialTransparency (#101248) by @monkeyswarm in 116867
- 將 TimePicker 轉換為 Material 3 by @gspencergoog in 116396
NavigationBar改進 by @TahaTesser in 116992- [重新套用] 為
ListTile新增 Material 3 支援 - 第一部分 by @TahaTesser in 116963 - 修正新的
unnecessary_parenthesis診斷 by @pq in 117081 - 更新 token 範本以與主分支程式碼同步 by @darrenaustin in 117097
- 修正 CupertinoTextSelectionToolbar 顯示不必要分頁 by @tgucio in 104587
- 建立 ErrorWidget 失敗時不會破壞 widget tree by @goderbauer in 117090
- 移除 timePicker 測試中的 debugPrint by @goderbauer in 117111
- 還原「[framework] 讓帶有 filterQuality 的 transform 成為 repaint boundary」 by @jonahwilliams in 117095
- 修正 scale gesture recognizer 文件中的拼字錯誤 by @justinmc in 117116
- 改善
compute()函式的文件說明 by @mkustermann in 116878 - [flutter_tools] 從 web 構建中 tree shake icons by @christopherfujino in 115886
- 更新 Navigator updatePages() by @hangyujin in 116945
- 將當前
FlutterView注入 tree 並可透過View.of(context)取得 by @goderbauer in 116924 - 再次套用「修正 text field label 動畫時長與曲線 (#105966)」 by @LongCatIsLooong in 114661
- 修正 #110342 無法更新 rich text widget gesture recognizer by @LucasXu0 in 116849
- 修正 Bottom App Bar M3 背景色問題 by @esouthren in 117082
- 再次套用「在 semanticsconfiguration 新增 API,以決定如何合併子 semanticsConfigurations」 by @chunhtai in 116895
- 還原「將當前
FlutterView注入 tree 並可透過View.of(context)取得」 by @CaseyHillers in 117214 - 延遲
systemFontsDidChange至 transientCallbacks 階段 by @LongCatIsLooong in 117123 - 更新選單中快捷鍵標籤的在地化 by @gspencergoog in 116681
- [web] 允許 shift + 左/右 鍵盤快捷鍵在 web 上由 framework 處理 by @htoor3 in 117217
- 再次套用「將當前 FlutterView 注入 tree 並可透過
View.of(context)取得 (#116924)」 by @goderbauer in 117244 - 改善 gesture recognizer semantics 測試案例 by @LucasXu0 in 117257
- 修正 is canvas kit bool by @alanwutang11 in 116944
- 新增
indicatorColor&indicatorShape至NavigationRail、NavigationDrawer,並將這些屬性從 destination 移至NavigationBarby @TahaTesser in 117049 - 修正
NavigationRail高亮顯示 by @TahaTesser in 117320 - 實作 BottomSheet 的 Scrim Focus by @harperl-lgtm in 116743
- 當可用時,公開 tooltip 的 longPress 動作 by @harperl-lgtm in 117338
- 移動註解至正確位置 by @angel333 in 117385
- 啟用
sized_box_shrink_expandlint by @goderbauer in 117371 - [Android] 新增拼字檢查建議工具列 by @camsim99 in 114460
- 啟用
use_enumslint by @goderbauer in 117376 - 啟用
use_colored_boxlint by @goderbauer in 117370 - 同步 analysis_options.yaml 並清理 by @goderbauer in 117327
- 啟用
dangling_library_doc_comments與library_annotationslints by @goderbauer in 117365 - 新增支援雙擊並拖曳選取文字 by @Renzo-Olivares in 109573
- NavigationDrawer 支援 safe area 與滾動 by @hangyujin in 116995
- web 上 canvaskit 支援 cacheWidth、cacheHeight by @alanwutang11 in 117423
- 修正
InkRipple在渲染 ink circles 時未遵守rectCallbackby @TahaTesser in 117395 - 修正 Scaffold bottomSheet 為 null 時的例外 by @justinmc in 117008
- EditableText grapheme cluster 滾動錯誤修正 by @justinmc in 117419
- 還原「新增支援雙擊並拖曳選取文字 #109573」 by @Renzo-Olivares in 117497
- 移除 widgets 函式庫中的單一視圖假設 by @goderbauer in 117480
- 還原「移除 widgets 函式庫中的單一視圖假設」 by @goderbauer in 117545
- 從 ScrollPhysics 移除單一視圖假設 by @goderbauer in 117503
- 再次套用「移除 widgets 函式庫中的單一視圖假設 (#117480)」 by @goderbauer in 117549
- 在文件中說明如何測試 onSubmitted by @justinmc in 117550
- 再次套用 iOS 16 context menu by @justinmc in 117234
- [flutter roll] 還原 #117338 與 #117547 by @XilaiZhang in 117557
- [flutter roll] 還原「移除 ScrollPhysics 的單一視窗假設」 by @XilaiZhang in 117647
- 更新 M3 IconButton 未選取聚焦時的透明度 by @esouthren in 117321
- [flutter roll] 還原「[重新套用] 為
ListTile新增 Material 3 支援 - 第一部分」 by @XilaiZhang in 117756 - 升級 tokens 至 v0.150. by @darrenaustin in 117350
- 再次套用「移除 ScrollPhysics 的單一視窗假設 (#117503)」 by @goderbauer in 117916
- BorderRadiusDirectional.zero 文件微調 by @gnprice in 117661
- 為 SliverList 新增便利建構子 by @thkim1011 in 116605
- 再次套用「新增支援雙擊並拖曳選取文字 #109573」 by @Renzo-Olivares in 117502
- == override 參數改為不可為 null by @srawlins in 117839
- 在 selection rects 傳送 text direction by @moffatman in 117436
- 避免在
TextBoundary中使用TextAffinityby @LongCatIsLooong in 117446 - 移除文件中對已棄用 ui.FlutterWindow API 的參考 by @jason-simmons in 118064
- 在 ExpansionPanelList Widget 上新增 expandIconColor 屬性 by @M97Chahboun in 115950
- 更新
window文件說明 by @a-wallen in 118072 - 修正 ExpansionPanel 動畫不同步問題 by @morriskurz in 105024
- InteractiveViewer 新增參數以回復 pre-3.3 觸控板/Magic Mouse 行為 by @moffatman in 114280
- 移除 selectable_text 中未使用的檢查 by @LucasXu0 in 117716
- 更新 ⟦