tonalColorSameSize property

bool tonalColorSameSize
final

Set to true to make tonal color items same size as the size defined for main and swatch shades indicator items.

If false, the tonal color items will be smaller and auto sized for the palette to be same width as the Material-2 Color palette.

Defaults to false. The color boxes are smaller, but length of their items is the same as MaterialColor swatch. You may prefer true to get them to be same size, especially if you only use tonal palette.

For legacy compatibility reasons, this property is false by default.

Implementation

final bool tonalColorSameSize;