ShadowContainer constructor

ShadowContainer({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. EdgeInsetsGeometry? padding,
  5. Widget? child,
  6. Color? color = colorWhite,
  7. BorderRadiusGeometry borderRadius = const BorderRadius.all(Radius.circular(10)),
  8. Color shadowColor = colorBlack4,
  9. Offset offset = const Offset(0, 2),
  10. double blurRadius = 5,
  11. 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);