enableTonalPalette property

bool enableTonalPalette
final

Set to true to allow selection of color tone from a tonal palette.

When set to true, the ColorPicker will use Material 3 color utilities to compute a tonal palette for the selected color, allowing you to select a color tone from the Tonal Palette for the selected color.

For more info on Material 3 Color system, see: https://m3.material.io/styles/color/the-color-system/key-colors-tones

The picker item size for tonal palette color indicator items is 10/13 the size of defined width and height. This is done in order to as far as possible try to match the width of the Primary Material Swatch items total width, it has 10 colors, the M3 tonal palette has 13 colors. The idea is try to match their width when they are both shown.

Defaults to false.

Implementation

final bool enableTonalPalette;