Skip to content

Commit b9c666a

Browse files
kevmoosfshaza2domesticmouse
authored
Update the material 3 design token docs (#12125)
This aligns the docs with the changes in flutter/flutter#170000 --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <44418985+sfshaza2@users.noreply.github.com> Co-authored-by: Brett Morgan <brettmorgan@google.com>
1 parent 2a3f890 commit b9c666a

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

src/content/release/breaking-changes/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ They're sorted by release and listed in alphabetical order:
4141
* [`$FLUTTER_ROOT/version` replaced by `$FLUTTER_ROOT/bin/cache/flutter.version.json`][]
4242
* [`FontWeight` also controls the weight attribute of variable fonts][]
4343
* [Deprecate `TextField.canRequestFocus`][]
44+
* [Material 3 tokens update][]
4445

4546
[Merged threads on Linux]: /release/breaking-changes/linux-merged-threads
4647
[Stop generating `AssetManifest.json`]: /release/breaking-changes/asset-manifest-dot-json
4748
[`$FLUTTER_ROOT/version` replaced by `$FLUTTER_ROOT/bin/cache/flutter.version.json`]: /release/breaking-changes/flutter-root-version-file
4849
[`FontWeight` also controls the weight attribute of variable fonts]: /release/breaking-changes/font-weight-variation
4950
[Deprecate `TextField.canRequestFocus`]: /release/breaking-changes/can-request-focus
51+
[Material 3 tokens update]: /release/breaking-changes/material-color-utilities
5052

5153
<a id="released-in-flutter-338" aria-hidden="true"></a>
5254
### Released in Flutter 3.38
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: Material Color Utilities update in Flutter
3+
description: >-
4+
The latest Material Color Utilities have been applied to the Flutter Material
5+
library.
6+
---
7+
8+
{% render "docs/breaking-changes.md" %}
9+
10+
## Summary
11+
12+
This release updates `package:material_color_utilities` from
13+
`v0.11.1` to `0.13.0`. This updated package includes algorithm changes that align
14+
with the [Material 3 tokens update](/release/breaking-changes/material-design-3-token-update).
15+
16+
The algorithm changes affect the same properties:
17+
18+
* `onPrimaryContainer`
19+
* `onSecondaryContainer`
20+
* `onTertiaryContainer`
21+
* `onErrorContainer`
22+
23+
The changes will be reflected when generating a scheme using
24+
25+
* `ColorScheme.fromSeed`
26+
* `ColorScheme.fromImageProvider`
27+
* `ThemeData(colorScheme:..)`
28+
29+
## Migration guide
30+
31+
In general, we believe the colors generated will be more legible and visually
32+
appealing, but if you want to maintain the previous colors when upgrading
33+
you will have to manually set those properties to their desired color after
34+
generating.
35+
36+
## Timeline
37+
38+
* Landed in version: `3.39.0-1.0.pre-250`
39+
* In stable release: TBD
40+
41+
## References
42+
43+
* Relevant commit: [Update material_color_utilities to v0.13.0](https://github.com/flutter/flutter/commit/153fd7fc603836d8d57032a9cb93118245dfba8c)

0 commit comments

Comments
 (0)