boxDecorationRoundedWithShadow function
rounded box decoration with shadow
Implementation
Decoration boxDecorationRoundedWithShadow(
int radiusAll, {
Color backgroundColor = Colors.white,
Color? shadowColor,
double? blurRadius,
double? spreadRadius,
Offset offset = const Offset(0.0, 0.0),
LinearGradient? gradient,
}) {
return BoxDecoration(
boxShadow: defaultBoxShadow(
shadowColor: shadowColor ?? KitConfig.shadowColorGlobal,
blurRadius: blurRadius ?? KitConfig.defaultBlurRadius,
spreadRadius: spreadRadius ?? KitConfig.defaultSpreadRadius,
offset: offset,
),
color: backgroundColor,
gradient: gradient,
borderRadius: radius(radiusAll.toDouble()),
);
}