image static method

Widget image(
  1. String url, {
  2. EdgeInsets padding = paddingStepOne,
  3. EdgeInsets margin = paddingStepOne,
  4. required double height,
  5. required double width,
})

Implementation

static Widget image(String url,
        {EdgeInsets padding = paddingStepOne,
        EdgeInsets margin = paddingStepOne,
        required double height,
        required double width}) =>
    Container(
      margin: margin,
      padding: padding,
      child: ClipRRect(
        borderRadius: BorderRadius.circular(borderRadius),
        child: Image.network(url, height: height, width: width),
      ),
    );