Skip to main content

Material Color Utilities update in Flutter

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:..)

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

#