ShadowContainer constructor
ShadowContainer({
- Key? key,
- double? height,
- double? width,
- EdgeInsetsGeometry? padding,
- Widget? child,
- Color? color = colorWhite,
- BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10)),
- Color shadowColor = colorBlack4,
- Offset offset = const Offset(0, 2),
- double blurRadius = 5,
- double spreadRadius = 2,
Implementation
ShadowContainer(
{Key? key,
double? height,
double? width,
EdgeInsetsGeometry? padding,
Widget? child,
Color? color = colorWhite,
BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10)),
Color shadowColor = colorBlack4,
Offset offset = const Offset(0, 2),
double blurRadius = 5,
double spreadRadius = 2})
: super(
key: key,
width: width,
height: height,
padding: padding,
decoration: BoxDecoration(color: color, borderRadius: borderRadius, boxShadow: [
BoxShadow(color: shadowColor, offset: offset, blurRadius: blurRadius, spreadRadius: spreadRadius)
]),
child: child);