colorScheme property

ColorScheme colorScheme
final

A set of 30 colors based on the Material spec that can be used to configure the color properties of most components.

This property was added much later than the theme's set of highly specific colors, like cardColor, canvasColor etc. New components can be defined exclusively in terms of colorScheme. Existing components will gradually migrate to it, to the extent that is possible without significant backwards compatibility breaks.

Implementation

final ColorScheme colorScheme;