FlexTones.soft constructor

FlexTones.soft(
  1. Brightness brightness
)

Creates a tonal palette extraction setup that results in M3 like ColorsSchemes with softer colors than Material-3 defaults.

Primary chroma is 30, secondary 14 and tertiary 20. Tones are same as in Material 3 default setup.

Implementation

factory FlexTones.soft(Brightness brightness) =>
    brightness == Brightness.light
        ? const FlexTones.light(
            primaryChroma: 30,
            primaryMinChroma: 0,
            secondaryChroma: 14,
            tertiaryChroma: 20,
          )
        : const FlexTones.dark(
            primaryChroma: 30,
            primaryMinChroma: 0,
            secondaryChroma: 14,
            tertiaryChroma: 20,
          );