# Material Color Utilities update in Flutter

> The latest Material Color Utilities have been applied to the Flutter Material library.




:::important
These breaking change docs are accurate, as of the release
under which they are published. Over time, the
workarounds described here might become inaccurate.
We don't, in general, keep these breaking change docs up
to date as of each release.

这些破坏性改动文档的准确性仅限于其发布时对应的版本。
随着时间的推移，文档中描述的方案可能会逐渐失效。
通常情况下，我们不会在每次发布新版本时都对这些文档进行同步更新。

The [breaking change index file](/release/breaking-changes)
lists the docs created for each release.

[破坏性改动列表](/release/breaking-changes) 
列出了每个版本的文档。

:::


## Summary

This release updates `package:material_color_utilities` from
`v0.11.1` to `0.13.0`.
This updated package includes algorithm changes that
align with the [Material 3 tokens update][].

The algorithm changes affect the same properties:

* `onPrimaryContainer`
* `onSecondaryContainer`
* `onTertiaryContainer`
* `onErrorContainer`

The changes will be reflected when generating a scheme using

* `ColorScheme.fromSeed`
* `ColorScheme.fromImageProvider`
* `ThemeData(colorScheme:..)`

[Material 3 tokens update]: /release/breaking-changes/material-design-3-token-update

## Migration guide

In general, we believe the colors generated will be more legible and visually
appealing, but if you want to maintain the previous colors when upgrading,
you will have to manually set those properties to their desired color after
generating.

## Timeline

Landed in version: 3.39.0-1.0.pre-250<br>
In stable release: 3.41

## References

* [Manually roll material_color_utilities][]

[Manually roll material_color_utilities]: https://github.com/flutter/flutter/pull/170000

