Flutter 3.27.0 發行說明
本頁為 3.27.0 版本的發行說明。 如需後續錯誤修正版本的資訊, 請參閱 Flutter [CHANGELOG]⟦L1364⟧。 ⟦L1363⟧
Flutter 框架
#框架
#- 於元件測試中新增 goldenFileComparator 的使用範例,by @alestiago in 150422
- 修正 content dimensions 未建立時 controller value 錯誤,by @hello-coder-xu in 148938
- 修正 tree hygene 文件中的連結,by @derdilla in 151235
- 修正範例中的參考,by @goderbauer in 151204
- 新增 withOpacity 至 gradient,by @rkishan516 in 150670
- 新增 SliverFloatingHeader,by @HansMuller in 151145
- 更新棄用政策,by @Piinks in 151257
- 以 iOS 設定 AppBar 為基礎新增 PinnedHeaderSliver 範例,by @HansMuller in 151205
- 新增有關垃圾訊息/刷屏的提醒,by @nate-thegrate in 150583
- 為即將到來的 link URL 變更預備 semantics_update_test,by @harryterkelsen in 151261
- Cupertino 透明導覽列,by @veloce in 149102
- 為 color_filtered.0.dart 範例新增測試,by @ksokolovskyi in 151064
- 為 action_listener.0.dart 新增測試,by @ValentinVignal in 150606
- 更新 doc-import 為主要設定的 import,_goldens_io.dart,by @srawlins in 151390
- 將範例程式碼中的棄用名稱抽離,by @nate-thegrate in 151374
- 新增 SliverFloatingHeader.snapMode,by @HansMuller in 151289
- [iOS] 新聞 App 基準測試,包含底部廣告橫幅,by @hellohuanlin in 150991
- 使
FittedBox在子元件尺寸為零時不會拋出異常,by @PurplePolyhedron in 150430 - [tool] 讓
testUsingContext預設提供Stdio(未設定hasTerminal)的覆寫,by @andrewkolos in 151357 - [tool] 移除部分已棄用 usage 套件的用法,by @andrewkolos in 151359
- 新增 Semantics 屬性
linkUrl,by @mdebbar in 150639 - 為 stepper.controls_builder.0.dart 新增測試,by @ValentinVignal in 150669
- 滾動 pub 套件,by @flutter-pub-roller-bot in 151492
- 清理漏水測試,by @polina-c in 151131
- 更新
SemanticsProperties.identifier的文件,by @mdebbar in 149915 - 修正標題層級吸收、診斷問題,並新增測試與 a11y 使用案例,by @yjbanov in 151421
- 在 tree hygiene 文件中提及不要在 commit 訊息中 @-mention 人員,by @Hixie in 151487
- 為 flutter_test 參考新增 docImports,by @goderbauer in 151175
- [CupertinoActionSheet] 修正按鈕的 padding 與字體大小,by @dkwingsmt in 151199
- 為 enum 值新增 doc imports,by @goderbauer in 151548
- 使用正確的地區設定於
CupertinoDatePicker星期,by @victorsanni in 151494 - 為 flutter_driver 新增 docimports,by @goderbauer in 151267
- 將 {@tool snippet} 替換為 {@tool dartpad} 於 CupertinoTabController,by @RamonFarizel in 151272
- 為 API 範例新增 docimports,by @goderbauer in 151606
- 新增設計文件檔案庫連結,by @loic-sharma in 151489
- 將
Switch.adaptive的變更合併至CupertinoSwitch,by @victorsanni in 149465 - 移除 dart2wasm 的 workaround,by @mkustermann in 151603
- 為 menu_anchor.2.dart 新增測試,by @ValentinVignal in 151399
- [macOS] 預設支援安全可還原狀態,by @cbracken in 151605
- 支援 CircularNotchedRectangle 反轉,選擇性繪製於路徑底部,by @arbaker2 in 151386
- 為 curve2_d.0.dart 新增測試,by @ValentinVignal in 150984
- 滾動 pub 套件,by @flutter-pub-roller-bot in 151816
- 更新 Design-Documents.md,by @sethladd in 151472
- 為
CupertinoCheckbox新增範例,by @victorsanni in 151779 - [CupertinoActionSheet] 新增觸覺回饋,by @dkwingsmt in 151420
- [CupertinoActionSheet] 支援舊版按鈕,by @dkwingsmt in 151136
- 移除測試中不必要的括號,by @srawlins in 151846
- 移除 geometry 的冗餘賦值,by @hgraceb in 151821
- 使
CupertinoSlidingSegmentedControl型別參數不可為 null,by @LongCatIsLooong in 151803 - 文件:修正資料驅動修正測試資料夾段落的拼字錯誤,by @rkishan516 in 151836
- 將
CupertinoContextMenu動畫限制於安全區域,by @victorsanni in 151860 - 圖片文件小修正:NNBD,並新增交叉參考,by @gnprice in 151938
WidgetState對應,by @nate-thegrate in 146043- 修正 WidgetStateTextStyle 的文件,by @croro613 in 151935
- 修正:BaseTapAndDragGestureRecognizer 應於失去手勢競技場後重設拖曳狀態,by @Renzo-Olivares in 151989
- 修正 SelectionArea 滾動衝突,by @Renzo-Olivares in 151138
- painting: 移除已棄用(已匯出)的 hashList 與 hashValues 函數,by @kevmoo in 151677
- 為 rendering 函式庫新增 docimports,by @goderbauer in 151958
- 為 scrollbar.1.dart 新增測試,by @ValentinVignal in 151463
- 增強 RawMagnifier 範例的直觀性,by @huycozy in 150308
- 修正 NestedScrollView 類別文件缺少右括號,by @weasdown in 152022
- 在 home route 上支援 WillPopScope,by @justinmc in 152057
- 根據 directives_ordering 規則排序 doc-imports,by @srawlins in 152058
- 為 focus_traversal_group.0.dart 新增測試,by @ValentinVignal in 151591
- [widgets/shortcuts] 為 Shortcuts 元件新增 includeSemantics 屬性,by @davidhicks980 in 152077
- 修正
RenderTable.get rowDecorations的型別,by @lrhn in 151886 - 為 DragTarget.builder 增加更多文件,by @eseidel in 151447
- 修正 clipboard.dart 的拼字錯誤,by @Amir-P in 151844
- 更新 overlay portal 的 mark needs semantics update 邏輯,by @chunhtai in 151688
widgetsdocImport,by @LongCatIsLooong in 152146- 為
NativeDriver與AndroidNativeDriver建立截圖所需的adb雛型,by @matanlurey in 152194 - 為帶有 InputDecoration 的 TextField 新增 Semantics 標籤,by @DBowen33 in 151996
- 修正:可選取區域內的選取區不應於右鍵點擊時被清除,by @Renzo-Olivares in 151851
- [CupertinoAlertDialog] 重寫,by @dkwingsmt in 150410
- 更新 fake_codec.dart,改用 Future.value 取代 SynchronousFuture,by @biggs0125 in 152182
- 為 IntrinsicHeight / IntrinsicWidth 新增更具體的範例,by @LongCatIsLooong in 152246
- 為 expansion_panel_list.expansion_panel_list_radio.0_test.dart 新增測試,by @ValentinVignal in 151730
- 為 widgets 函式庫新增
docImport,by @LongCatIsLooong in 152339 - 每當焦點變更時呼叫
PlatformDispatcher,by @gspencergoog in 151268 - 清理 examples/api 網頁載入邏輯至最新,by @kevmoo in 152349
- 為 range_slider.0.dart 新增測試,by @ValentinVignal in 152152
- 新增並使用原生(ADB)截圖的整合測試,by @matanlurey in 152326
- 修正 TextField 輸入 Unicode Zs 分類時游標位置問題,by @koji-1009 in 152215
- 使
DragGestureRecognizer抽象方法公開,by @angelosilvestre in 151627 - 更新 text_painter.dart,by @LongCatIsLooong in 152398
- [cupertino/icons.dart] 將 ligature 參考替換為 codepoints 以供 dartdoc 使用,by @victorsanni in 152387
- 為 deletable_chip_attributes.on_deleted.0.dart 新增測試,by @ValentinVignal in 152361
- [devicelab] 在 external texture 測試中啟用 impeller,by @jonahwilliams in 152502
- 停止 CupertinoScrollbar 軌道於點擊時分頁滾動視圖,by @victorsanni in 152197
- [wiki] 移除 wiki 編輯不會進行程式碼審查的說明,by @Rexios80 in 152530
- 釐清並清理 tree-hygiene 中的 test-exemption 說明,by @matanlurey in 152402
- 為 search_anchor.0.dart 新增測試,by @ValentinVignal in 152371
- 為 scaffold messenger 範例新增測試,by @ValentinVignal in 152536
- ✨:Animation controller 現可重複動畫 n 次,by @aliasgar4558 in 150764
- 移除 skia_client.dart 中冗餘的 zones 用法,by @Hixie in 149366
- 桌面平台 SelectionArea 支援 Shift + 點擊手勢,by @Renzo-Olivares in 148574
- 改善
CupertinoCheckbox的擬真度,by @victorsanni in 151441 - [CupertinoActionSheet] 使
_ActionSheetButtonBackground無狀態化,by @dkwingsmt in 152283 - 為 search anchor 範例新增測試,by @ValentinVignal in 152659
- 修正
search_anchor.0_test.dart的格式化問題,by @ValentinVignal in 152669 - 修正本地測試、gradle XML 錯誤,並於 CI 啟用,by @matanlurey in 152383
- [CupertinoActionSheet & AlertDialog] 改善
scrollController參數的文件與型別,by @dkwingsmt in 152647 - 說明預測返回(predictive back)無法與 WillPopScope 搭配,by @justinmc in 152116
- 範例程式碼中使用
.fromMap()建構函式,by @nate-thegrate in 152535 - 為 scaffold_state.show_bottom_sheet.0.dart 新增測試,by @ValentinVignal in 152731
- [wiki] 移除過時的覆蓋率資料警告,by