dialogBackground property

Color? dialogBackground
final

The background color of Dialog elements.

The color is applied to ThemeData.dialogBackgroundColor. It cannot be controlled separately with only a ThemeData.from a color scheme.

When using sub-themes, it is also applied to backgroundColor in dialog themes, but only if subThemesData.dialogBackgroundSchemeColor has not be defined in subThemesData.

  • DatePickerThemeData
  • DialogTheme
  • TimePickerThemeData

If no value is given, and no subThemesData.dialogBackgroundSchemeColor is defined, default color is surface.

Implementation

final Color? dialogBackground;