elevation property

double? elevation
final

The z-coordinate of this Dialog.

Controls how far above the parent the dialog will appear. Elevation is represented by a drop shadow if shadowColor is non null, and a surface tint overlay on the background color if surfaceTintColor is non null.

If null then DialogThemeData.elevation is used, and if that is null then the elevation will match the Material Design specification for Dialogs.

See also:

  • Material.elevation, which describes how elevation effects the drop shadow or surface tint overlay.
  • shadowColor, color of the drop shadow used to indicate the elevation.
  • surfaceTintColor, color of an overlay on top of the background color used to indicate the elevation.
  • m3.material.io/components/dialogs/overview, the Material Design specification for dialogs. The z-coordinate at which to place this material relative to its parent.

This controls the size of the shadow below the material and the opacity of the elevation overlay color if it is applied.

If this is non-zero, the contents of the material are clipped, because the widget conceptually defines an independent printed piece of material.

Defaults to 0. Changing this value will cause the shadow and the elevation overlay or surface tint to animate over Material.animationDuration.

The value is non-negative.

See also:

Implementation

final double? elevation;