roundedWithShadow method

Widget roundedWithShadow({
  1. double radius = 12,
  2. Color shadowColor = Colors.black26,
  3. double blurRadius = 8,
  4. Color backgroundColor = Colors.white,
})

Implementation

Widget roundedWithShadow({
  double radius = 12,
  Color shadowColor = Colors.black26,
  double blurRadius = 8,
  Color backgroundColor = Colors.white,
}) => Container(
  decoration: BoxDecoration(
    color: backgroundColor,
    borderRadius: BorderRadius.circular(radius),
    boxShadow: [BoxShadow(color: shadowColor, blurRadius: blurRadius)],
  ),
  child: ClipRRect(borderRadius: BorderRadius.circular(radius), child: this),
);