paletteType property

FlexPaletteType paletteType
final

Defines what FlexPaletteType this FlexTones uses.

The default is FlexPaletteType.common with 15 tones or optionally use the extended FlexPaletteType.extended with 24 tones.

To make color schemes with new Material3 mappings for light and dark surface colors, using the extended tone set is needed.

In Flutter 3.10 and earlier the new ColorScheme surface colors that need the new tones are not yet available.

The added tones 4, 6, 12, 17, 22 are for new dark mode surfaces in revised Material 3 dark surface colors. Likewise added tones 96, 94, 92, 87 are for light mode surfaces in the updated Material 3 color system. For more information, see: https://m3.material.io/styles/color/the-color-system/color-roles The additional tones in the Material 3 specification appeared during later pert of first half of 2023.

Implementation

final FlexPaletteType paletteType;