surface property

Color? surface
final

The surface (background) color for widgets like Card and BottomAppBar.

The color is applied to ThemeData.cardColor and ColorScheme.surface in ThemeData.colorScheme, it is also used by all Material of type MaterialType.card.

If no value is given, and if there is no colorScheme defined, it defaults to FlexColor.materialLightSurface if brightness is light, and to FlexColor.materialDarkSurface if brightness is dark.

Implementation

final Color? surface;