Material elevation property

elevation property

阴影的范围,值越大阴影范围越大

double elevation
https://material.io/design/environment/elevation.html#

final

The z-coordinate at which to place this material relative to its parent.

This controls the size of the shadow below the material.

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 to animate over animationDuration.

The value is non-negative.

Implementation

final double elevation

你可能感兴趣的:(Material elevation property)