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
andCupertinoTextField
also have updated behaviors.
- Added 37 missing widgets to the Cupertino catalog,
and a new screenshot for the updated
- 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:
- Embedding Flutter on the web, including how to enable multi-view mode
- Embedding web content into a Flutter app
- 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:
- 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
- A new 7-page section on Adaptive and Responsive design. (This replaces our previous, somewhat scattered, documentation on this subject.)
- For new-ish Flutter developer who has worked through the first Flutter codelab, we've added some "what's next" advice on how to move beyond that initial step. Check out the Flutter fundamentals docs.
- Our Flutter install docs have been revamped.
- We have three new codelabs and a new guide for the Games Toolkit. To see the list of additions, check out the updated Casual Games Toolkit page.
- A new section, Conditionally bundling assets based on flavor, in the Flavors page.
- Flutter support for Web Assembly (Wasm) has now reached stable. To learn more, check out the updated Support for WebAssembly (Wasm) page.
- DevTools has a new screen for evaluating deep links on Android. To learn more, check out the new page, Validate deep links.
- We have a new page that describes web bootstrapping for Flutter SDK release 3.22 and later. Check out Flutter web app initialization.
- You can now provide code to transform your assets into another format at runtime. To learn more, check out Transforming assets at build time.
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.
除非另有说明,本文档之所提及适用于 Flutter 的最新稳定版本,本页面最后更新时间: 2024-10-02。 查看文档源码 或者 为本页面内容提出建议。