PanelDecoration class

The decoration to be applied on the PanelContent. To see detailed description of properties, please see BoxDecoration, as most of the properties are derived from it.

Constructors

PanelDecoration({Border? border, BorderRadiusGeometry? borderRadius, List<BoxShadow> boxShadows = const <BoxShadow>[BoxShadow(blurRadius: 8.0, color: Color.fromRGBO(0, 0, 0, 0.25))], Color? backgroundColor, EdgeInsets? padding, EdgeInsets? margin, Gradient? gradient, DecorationImage? image, BlendMode? backgroundBlendMode})
const

Properties

backgroundBlendMode BlendMode?
The blend mode applied to the backgroundColor or gradient of panel.
final
backgroundColor Color?
Background color of the panel.
final
border Border?
The border to render around the panel.
final
borderRadius BorderRadiusGeometry?
Provide this to round the corners of the panel.
final
boxShadows List<BoxShadow>
Provide this to show custom shadows behind panel.
final
gradient Gradient?
A gradient to use when filling the panel.
final
hashCode int
The hash code for this object.
no setterinherited
image DecorationImage?
An image to paint above the backgroundColor or gradient.
final
margin EdgeInsets?
Apply margin around the panel.
final
padding EdgeInsets?
Apply padding to the panel children.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited