circularAssetShadowImage method

Widget circularAssetShadowImage(
  1. {Key key,
  2. EdgeInsets margin = const EdgeInsets.all(0.0),
  3. EdgeInsets padding = const EdgeInsets.all(0.0),
  4. double width = 40.0,
  5. double height = 40.0,
  6. double blurRadius = 3.0,
  7. 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,
            ),
          )
        ],
      ),
    );