secondaryChroma property

double? secondaryChroma
final

Cam16 chroma value to use for secondary colors FlexTonalPalette generation.

If null, the chroma value from the used secondary seed key color is used, if it is larger than secondaryMinChroma.

Flutter SDK ColorScheme.fromSeed uses secondaryChroma hard coded and locked to 16.

The Material 3 default produces quite soft and muted tones as secondary tonal palette at the mid-point tones of the palette.

By adjusting secondaryChroma and/or secondaryMinChroma you can change this. The color system usage of the secondary colors in Material 3 is pretty strict from a design point of view. For default widget coloring to work and look as intended it is recommended to keep secondary color close in hue, or same as primary, with a lower chroma value (less colorful). You can certainly vary the hue a bit and make it a bit more colorful then Material 3 design defaults.

Implementation

final double? secondaryChroma;