widgetShowImages static method

Widget widgetShowImages(
  1. String imageUrl,
  2. double imageSize
)

Implementation

static Widget widgetShowImages(String imageUrl, double imageSize) {
  return CachedNetworkImage(
    imageUrl: imageUrl,
    imageBuilder: (context, imageProvider) => Container(
      decoration: BoxDecoration(
        image: DecorationImage(
          image: imageProvider,
          fit: BoxFit.cover,
          //colorFilter:ColorFilter.mode(Colors.red, BlendMode.colorBurn)
        ),
      ),
    ),
    height: imageSize,
    width: imageSize,
    placeholder: (context, url) => CircularProgressIndicator(),
    errorWidget: (context, url, error) => Icon(Icons.error),
  );
}