BoxDecoration
BoxDecoration provides a description of how to paint a box. The box has a border, a body, and may cast a shadow.
Properties
-
bgcolor(Optional[ColorValue]) –The color to fill in the background of the box.
-
blend_mode(Optional[BlendMode]) – -
border(Optional[Border]) – -
border_radius(Optional[BorderRadiusValue]) –The border radius of the box.
-
gradient(Optional[Gradient]) –A gradient to use when filling the box.
-
image(Optional[DecorationImage]) – -
shadows(Optional[BoxShadowValue]) –A list of shadows cast by the box.
-
shape(BoxShape) –
Methods
-
copy–
Properties#
bgcolor
class-attribute
instance-attribute
#
bgcolor: Optional[ColorValue] = None
The color to fill in the background of the box.
blend_mode
class-attribute
instance-attribute
#
border
class-attribute
instance-attribute
#
border_radius
class-attribute
instance-attribute
#
border_radius: Optional[BorderRadiusValue] = None
The border radius of the box.
gradient
class-attribute
instance-attribute
#
A gradient to use when filling the box.
image
class-attribute
instance-attribute
#
image: Optional[DecorationImage] = None
shadows
class-attribute
instance-attribute
#
shadows: Optional[BoxShadowValue] = None
A list of shadows cast by the box.
shape
class-attribute
instance-attribute
#
Methods#
copy
#
copy(
*,
bgcolor: Optional[ColorValue] = None,
image: Optional[DecorationImage] = None,
border: Optional[Border] = None,
border_radius: Optional[BorderRadiusValue] = None,
shadows: Optional[BoxShadowValue] = None,
gradient: Optional[Gradient] = None,
shape: Optional[BoxShape] = None,
blend_mode: Optional[BlendMode] = None,
)