dialogElevation property

double? dialogElevation
final

Elevation of Dialog.

The SDK elevation 24 is quite high, casting deep shadows. We make it less elevated via opinionated default value kDialogElevation of 6.

One rationale for this change is that when using strong surface color branding and overlay color elevation in dark mode, the elevated dialog surface will become too light and contrast poorly with primary color.

The value 6dp is also Material 3 spec default, we use it for M2 as well as FCS opinionated default.

If not defined, defaults to kDialogElevation = 6.

Implementation

final double? dialogElevation;