DialogThemeData class

Theme data for dialog widgets (DialogConfirm, DialogAlert, DialogPrompt, DialogSelect).

Controls the visual appearance of modal dialogs and inline prompt panels.

Constructors

DialogThemeData({Color? background, Color? foreground, Color? overlayColor, double? overlayOpacity, Color? buttonBackground, Color? buttonSelectedBackground, Color? buttonForeground, Color? buttonSelectedForeground, Color? hintForeground, Color? footerBackground, int? width, int? maxHeight})
const

Properties

background Color?
Background color of the dialog panel. Defaults to Theme.surface.
final
buttonBackground Color?
Background color for action buttons in their default state. Defaults to Theme.resolvedSurfaceVariant.
final
buttonForeground Color?
Text color for action buttons in their default state. Defaults to Theme.onSurface.
final
buttonSelectedBackground Color?
Background color for the selected/active action button. Defaults to Theme.primary.
final
buttonSelectedForeground Color?
Text color for the selected/active action button. Defaults to Theme.onPrimary.
final
footerBackground Color?
Background color for the footer bar in inline prompt panels. Defaults to Theme.resolvedSurfaceVariant.
final
foreground Color?
Default text color in the dialog. Defaults to Theme.onSurface.
final
hashCode int
The hash code for this object.
no setterinherited
hintForeground Color?
Text color for keyboard hint labels. Defaults to Theme.muted.
final
maxHeight int?
Maximum height of the dialog panel in rows. Defaults to 20.
final
overlayColor Color?
Color of the modal overlay/backdrop. Defaults to Theme.background.
final
overlayOpacity double?
Opacity of the modal overlay (0.0–1.0). Defaults to 0.6.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int?
Width of the dialog panel in columns. Defaults to 60.
final

Methods

copyWith({Color? background, Color? foreground, Color? overlayColor, double? overlayOpacity, Color? buttonBackground, Color? buttonSelectedBackground, Color? buttonForeground, Color? buttonSelectedForeground, Color? hintForeground, Color? footerBackground, int? width, int? maxHeight}) DialogThemeData
Copy with selective overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited