FlexTones.material3Legacy constructor
FlexTones.material3Legacy(
- Brightness brightness
Create a Material-3 standard tonal palette tones extraction using Cam16 based chroma.
This setup will when only one seed color is used, produce the same result
as Flutter SDK does when using ColorScheme.fromSeed in
Flutter version 3.19 and earlier.
Prior to FlexSeedScheme 2.0.0, this was the default setup used by the FlexTones.material configuration. However, FlexTones.material was in FSS version 2.0.0 modified to match the new actual and revised Material-3 configuration in Flutter 3.22 and later. This factory is provided if you need and want to use the older Material-3 seed generation setup used in Flutter 3.19 and earlier versions.
Implementation
factory FlexTones.material3Legacy(Brightness brightness) => brightness == Brightness.light
? const FlexTones.light(
surfaceTone: 99,
primaryChroma: 48,
primaryMinChroma: 48,
secondaryChroma: 16,
tertiaryChroma: 24,
neutralChroma: 4,
)
: const FlexTones.dark(
surfaceTone: 10,
primaryChroma: 48,
primaryMinChroma: 48,
secondaryChroma: 16,
tertiaryChroma: 24,
neutralChroma: 4,
);