Material Color Utilities update in Flutter
The latest Material Color Utilities have been applied to the Flutter Material library.
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:
onPrimaryContaineronSecondaryContaineronTertiaryContaineronErrorContainer
The changes will be reflected when generating a scheme using
ColorScheme.fromSeedColorScheme.fromImageProviderThemeData(colorScheme:..)
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 - In stable release: TBD
References
#- Relevant commit: Update material_color_utilities to v0.13.0
除非另有说明,本文档之所提及适用于 Flutter 3.38.1 版本。本页面最后更新时间:2025-11-24。查看文档源码 或者 为本页面内容提出建议。