Skip to Content
API ReferenceBoxDecoration

BoxDecoration

live Describes the visual decoration of a box, including background color, border, corner radii, and shadow. Used with container elements such as Container.

Constructor

BoxDecoration

live Describes the visual decoration of a box, including background color, border, corner radii, and shadow. Used with container elements such as Container.

ParameterDescription
ColorThe background fill color. Null means no fill.
BorderThe border drawn around the box. Null means no border.
BorderRadiusThe corner radii of the box. Null means sharp corners.
ShadowA drop shadow cast by the box. Null means no shadow.

Properties

Border

The border drawn around the box. Null means no border.

BorderRadius

The corner radii of the box. Null means sharp corners.

Color

The background fill color. Null means no fill.

None

A decoration with no fill, no border, no radius, and no shadow.

Shadow

A drop shadow cast by the box. Null means no shadow.

Last updated on