roundedWithShadow method
Widget
roundedWithShadow(
{ - double radius = 12,
- Color shadowColor = Colors.black26,
- double blurRadius = 8,
- 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),
);