buildImage method

Widget buildImage()

Implementation

Widget buildImage() {
  final image =
      (imagePath.startsWith('https://') || imagePath.startsWith('http://'))
          ? Image.network(imagePath)
          : Image.file(File(imagePath));

  return ClipOval(
    child: Material(
      color: Colors.transparent,
      child: Ink.image(
        image: image.image,
        fit: BoxFit.cover,
        width: 128,
        height: 128,
        child: InkWell(onTap: onClicked),
      ),
    ),
  );
}