FlexTones.material constructor
FlexTones.material(
- Brightness brightness
Create a M3 standard tonal palette tones extraction and CAM16 chroma setup.
This setup will if only one seed color is used, produce the same result
with FlexColorPalette
as Scheme.light
or Scheme.dark
depending on
used brightness
, does when Flutter SDK uses ColorPalette.of
.
Implementation
factory FlexTones.material(Brightness brightness) =>
brightness == Brightness.light
? const FlexTones.light(
secondaryChroma: 16,
tertiaryChroma: 24,
)
: const FlexTones.dark(
secondaryChroma: 16,
tertiaryChroma: 24,
);