background property

Color? background
final

A color that typically appears behind scrollable content.

The color is applied to ThemeData.canvasColor and ThemeData.backgroundColor, it is used eg by menu Drawer and by all Material of type MaterialType.canvas.

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

Implementation

final Color? background;