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 10.

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.

Implementation

final double dialogElevation;