getImageWidget method

Widget getImageWidget(
  1. double size
)

Implementation

Widget getImageWidget(double size) {
  if (_product != null) {
    return SmoothMainProductImage(
      product: _product!,
      width: size,
      height: size,
    );
  }
  if (_priceProduct != null) {
    final String? imageURL = _priceProduct.imageURL;
    return SmoothImage(
      width: size,
      height: size,
      imageProvider: imageURL == null ? null : NetworkImage(imageURL),
    );
  }
  return SmoothImage(width: size, height: size);
}