Skip to main content

BoxDecoration

BoxDecoration has the following properties:

bgcolor​

The color to fill in the background of the box.

blend_mode​

The blend mode to apply to the background color or gradient.

Value is of type BlendMode.

border​

A border to draw above the background color, gradient, or image.

Value is of type Border.

border_radius​

The border radius of the box.

Value is of type BorderRadius.

box_shadow​

A list of shadows cast by the box.

Value is of type List[BoxShadow].

gradient​

A gradient to use when filling the box.

image​

An image to paint above the background color or gradient.

Value is of type DecorationImage.

shape​

The shape to fill the bgcolor, gradient, and image into and to cast as the shadow.