Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add migration guide for Material 3 #10076

Merged
merged 5 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
{ "source": "/ios-14", "destination": "/platform-integration/ios/ios-debugging", "type": 301 },
{ "source": "/ios-project-migration", "destination": "/platform-integration/ios", "type": 301 },
{ "source": "/layout", "destination": "/ui/layout", "type": 301 },
{ "source": "/material-3-migration", "destination": "/release/breaking-changes/material-3-migration", "type": 301 },
{ "source": "/packages-and-plugins/androidx-compatibility", "destination": "/platform-integration/android/androidx-migration", "type": 301 },
{ "source": "/packages-and-plugins/c-interop", "destination": "/platform-integration/android/c-interop", "type": 301 },
{ "source": "/packages-and-plugins/plugins-in-tests", "destination": "/testing/plugins-in-tests", "type": 301 },
Expand Down
2 changes: 1 addition & 1 deletion src/_data/catalog/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"name": "Material components",
"description": "Visual, behavioral, and motion-rich widgets implementing the <a href=\"https://m3.material.io/get-started\">Material 3</a> design specification.<br /><br />Material 3 is the default Flutter interface as of Flutter 3.16. To learn more about this transition, check out <a href=\"https://m3.material.io/develop/flutter\">Flutter support for Material 3</a>.",
"pagecontent": "Eventually, Material 2 will be deprecated, but in the short term, you can opt out of Material 3 by setting the <a href=\"https://api.flutter.dev/flutter/material/ThemeData/useMaterial3.html\"><code>useMaterial3</code></a> flag to <code>false</code> in your theme.<br /><br />To catch these widgets in action, check out our live Material 3 <a href=\"https://flutter.github.io/samples/web/material_3_demo\" target=\"_blank\" rel=\"noopener noreferrer\">demo app</a>.<br /><br />You can still check out our legacy <a href=\"/ui/widgets/material2\">Material 2 widgets</a> over at their catalog page.",
"pagecontent": "Eventually, Material 2 will be deprecated, but in the short term, you can opt out of Material 3 by setting the <a href=\"https://api.flutter.dev/flutter/material/ThemeData/useMaterial3.html\"><code>useMaterial3</code></a> flag to <code>false</code> in your theme.<br /><br />To migrate your widgets to Material 3, check out the <a href=\"/release/breaking-changes/material-3-migration\">migration guide.</a><br /><br />To catch these widgets in action, check out our live Material 3 <a href=\"https://flutter.github.io/samples/web/material_3_demo\" target=\"_blank\" rel=\"noopener noreferrer\">demo app</a>.<br /><br />You can still check out our legacy <a href=\"/ui/widgets/material2\">Material 2 widgets</a> over at their catalog page.",
"subcategories": [
{
"name": "Actions",
Expand Down
2 changes: 2 additions & 0 deletions src/_data/sidenav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@
permalink: /cookbook/design/themes
- title: Material design
permalink: /ui/design/material
- title: Migrate to Material 3
permalink: /release/breaking-changes/material-3-migration
- title: Text
permalink: /ui/design/text
children:
Expand Down
2 changes: 2 additions & 0 deletions src/release/breaking-changes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ release, and listed in alphabetical order:

### Released in Flutter 3.16

* [Migrating to Material 3][]
* [Migrate ShortcutActivator and ShortcutManager to KeyEvent system][]
* [The `ThemeData.useMaterial3` property is now set to true by default][]
* [Deprecated API removed after v3.13][]
Expand All @@ -64,6 +65,7 @@ release, and listed in alphabetical order:
* [Windows: External windows should notify Flutter engine of lifecycle changes][]
* [Windows build path changed to add the target architecture][]

[Migrating to Material 3]: {{site.url}}/release/breaking-changes/material-3-migration
[Migrate ShortcutActivator and ShortcutManager to KeyEvent system]: {{site.url}}/release/breaking-changes/shortcut-key-event-migration
[The `ThemeData.useMaterial3` property is now set to true by default]: {{site.url}}/release/breaking-changes/material-3-default
[Deprecated API removed after v3.13]: {{site.url}}/release/breaking-changes/3-13-deprecations
Expand Down