DecoratedBox
Overview
Applies decorations such as a background color, border, shadow, and gradient. For example, give a card both a shadow and a border.
Properties
| Property | Description | Value | Default |
|---|---|---|---|
position | Sets whether the decoration is drawn behind the child widget (background) or in front of it (foreground). | background (behind), foreground (in front) | background (behind) |
decoration | Sets the box decoration applied to the child widget — background color, border, corner radius, shadow, gradient, and more. | color, border, borderRadius, boxShadow, backgroundBlendMode, and gradient can each be set individually | Empty |