material_color_utilities 0.13.1
material_color_utilities: ^0.13.1 copied to clipboard
Algorithms and utilities that power the Material Design 3 color system, including choosing theme colors from images and creating tones of colors; all in a new color space.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased #
0.13.1 - 2026-08-10 #
0.13.0 - 2025-05-20 #
Changed #
- Make all
MaterialDynamicColorsfieldsfinal. - Require Dart 3.5.
- Optimize ARGB and HCT color conversions in
DynamicSchemeconstructors. - Unify
errorPaletteparameter handling acrossDynamicSchemeconstructors. - Make
Schemeinternal implementation details private.
Deprecated #
- Deprecate legacy
CorePaletteclass in favor ofCorePalettes.
0.11.0 - 2024-02-20 #
Changed #
- Update
TonalPalette.fromListso that it provides colors at any tone, not only atcommonTones.
0.9.0 - 2023-11-06 #
0.7.0 - 2023-06-13 #
Changed #
-
Update
DynamicColorto conform to the new contrast requirements.- Modify API for
DynamicColor.
- Modify API for
0.6.0 - 2023-05-31 #
Added #
-
Add key color to tonal palette.
-
Add key colors to the Material dynamic colors:
primaryPaletteKeyColorsecondaryPaletteKeyColortertiaryPaletteKeyColorneutralPaletteKeyColorneutralVariantPaletteKeyColor
Changed #
- Scheme updates to align with recent Android Sys UI changes:
SchemeExpressive:- Primary hue + 240 from 120
- Neutral hue + 15
- Neutral variant hue + 15
SchemeTonalSpot:- Primary chroma = 36 from 40
SchemeVibrant:- Neutral chroma = 10 from 8
Fixed #
- Fix outline when in dark mode to be tone 60.
0.4.0 - 2023-04-28 #
0.3.0 - 2023-03-10 #
Added #
-
Add 4 new components:
-
contrast: UseContrastfor utility methods. -
dislike: UseDislikeAnalyzerfor checking and fixing universally disliked colors. -
dynamiccolor: UseDynamicColorandMaterialDynamicColorsfor colors from aDynamicScheme, that adjust based on UI state (dark theme, style, preferences, contrast requirements, etc.) -
temperature: UseTemperatureCachefor analogous & complementary colors.
-
-
scheme: AddDynamicSchemeand its subclasses:SchemeExpressiveSchemeMonochromeSchemeNeutralSchemeTonalSpotSchemeVibrantSchemeFidelitySchemeContent
-
hct: AddinViewingConditionstohct, for color relativity. -
utilities: AddlstarFromYmethod, utility which is the inverse ofyFromLstar.
Changed #
- Export all public API in
material_color_utilities.dart. - Bump minimum Flutter SDK version to
2.17.0.
Fixed #
- Fix missing
hashCodeoverride forHct. - Fix
TonalPaletteequality operator when different constructors are used (#56).
0.2.0 - 2022-08-05 #
0.1.5 - 2022-04-25 #
Added #
- Introduce
CamSolver, a fast solver for the HCT equation. Highly performant, but a small breaking change. - Add explanation and link to
dynamic_colorpackages. - Add
operator ==andtoStringoverrides toHct.
Changed #
- Improve documentation for
color_utils.dart. - Rename
HctColortoHct.
Fixed #
- Fix README import.
0.1.4 - 2022-01-21 #
Added #
- Allow creation of
Schemefrom aCorePalettewithlightFromCorePaletteanddarkFromCorePalette
0.1.2 - 2021-12-02 #
Changed #
- Update
Schemetonal values. - Move
matcherto pubspec'sdev_dependencies.
