boxDecorationWithShadow function
Decoration
boxDecorationWithShadow({
- Color backgroundColor = whiteColor,
- Color? shadowColor,
- double? blurRadius,
- double? spreadRadius,
- Offset offset = const Offset(0.0, 0.0),
- LinearGradient? gradient,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - DecorationImage? decorationImage,
- BoxShape boxShape = BoxShape.rectangle,
- BorderRadius? borderRadius,
box decoration with shadow
Implementation
Decoration boxDecorationWithShadow({
Color backgroundColor = whiteColor,
Color? shadowColor,
double? blurRadius,
double? spreadRadius,
Offset offset = const Offset(0.0, 0.0),
LinearGradient? gradient,
BoxBorder? border,
List<BoxShadow>? boxShadow,
DecorationImage? decorationImage,
BoxShape boxShape = BoxShape.rectangle,
BorderRadius? borderRadius,
}) {
return BoxDecoration(
boxShadow: boxShadow ??
defaultBoxShadow(
shadowColor: shadowColor,
blurRadius: blurRadius,
spreadRadius: spreadRadius,
offset: offset,
),
color: backgroundColor,
gradient: gradient,
border: border,
image: decorationImage,
shape: boxShape,
borderRadius: borderRadius,
);
}