Flutter 文档网站更新

本页包含了近期的公告以及网站上的更新内容。想要了解每个 Flutter 发布的版本更新内容,你可以在 更新内容归档 页面上查找历史更新信息。还可以查看 Flutter SDK 发布说明 页面。

要及时同步最新 Flutter 公告,包括重大变更 (breaking changes) 等,请加入 flutter-announce 邮件组。

你可以加入 Dart Announce 邮件组或查看 Dart 更新日志 了解 Dart 的更新内容。

07 August 2024: I/O Connect Beijing 3.24 release

#

Flutter 3.24 is live! For more information, check out the Flutter 3.24 umbrella blog post and the Flutter 3.24 technical blog post. You might also check out the Dart 3.5 release blog post.

Docs updated or added since the 3.22 release

This website release includes several important updates!

  • An updated widget catalog:
    • Added 37 missing widgets to the Cupertino catalog, and a new screenshot for the updated CupertinoActionSheet widget.
    • Added the new CarouselView widget.
    • CupertinoButton and CupertinoTextField also have updated behaviors.
  • New guides on adding support for Swift Package Manager to iOS plugins and iOS apps. (Note that, until all of your app's dependencies are migrated, Flutter will continue to use CocoaPods.)
  • Updated web docs:
  • Update for Android 14: If you are using an Android device that runs on Android 14, you can now support Android's predictive back gesture.
  • Updates for iOS 18: The iOS 18 release is in beta at the time of this release. These iOS 18 features are already enabled in Flutter and are now mentioned in the docs:
    • Use an iOS app extension in your Flutter app to create a custom toggle. Your users can then add your app's toggle when customizing their Control Center.
    • Tinted app icons are supported
  • Two pages of the Flutter fundamentals docs are updated:
    • Widgets
    • Layout We hope these pages are helpful for new Flutter developers.
  • DevTools also has updates. Check out the release notes for DevTools 2.35.0, DevTools 2.36.0, and DevTools 2.37.2.

Other

#
  • If you are interested in the new, experimental Flutter GPU API, check out the Flutter GPU blog post.
  • The Flutter wiki has been divided up and moved into the relevant GitHub repos, making it easier to keep that info up to date.

14 May 2024: Google I/O 3.22 release

#

Flutter 3.22 is live! For more information, check out the Flutter 3.22 umbrella blog post and the Flutter 3.22 technical blog post.

You might also check out the Dart 3.4 release blog post. In particular, Dart now provides a "baked in" language macro, JsonCodable, for serializing and deserializing JSON data. A future (and unspecified) Dart release will allow you to create your own macros. To learn more, check out dart.dev/go/macros.

Docs updated or added since the 3.19 release

Website infrastructure

  • If you contribute to the website, you might have noticed some recent changes. Namely, the website infrastructure has been updated and the new workflow is simpler. For more details, check out the website README.
  • You might also have noticed that the App solutions submenu in the sidenav now has an AI section, and an enhanced Monetization section, to name some of the changes.