circularAssetShadowImage method
Widget
circularAssetShadowImage({
- Key? key,
- EdgeInsets margin = const EdgeInsets.all(0.0),
- EdgeInsets padding = const EdgeInsets.all(0.0),
- double width = 40.0,
- double height = 40.0,
- double blurRadius = 3.0,
- double borderRadius = 50.0,
Implementation
Widget circularAssetShadowImage({
Key? key,
EdgeInsets margin = const EdgeInsets.all(0.0),
EdgeInsets padding = const EdgeInsets.all(0.0),
double width = 40.0,
double height = 40.0,
double blurRadius = 3.0,
double borderRadius = 50.0,
}) =>
Container(
key: key,
margin: margin,
padding: padding,
width: width,
height: height,
decoration: BoxDecoration(
color: Colors.white,
shape: BoxShape.rectangle,
image: DecorationImage(image: AssetImage(this)),
borderRadius: BorderRadius.circular(borderRadius),
boxShadow: [
BoxShadow(
color: Colors.black,
blurRadius: blurRadius,
offset: const Offset(
0.0,
0.0,
),
)
],
),
);