buildImage method

Widget buildImage(
  1. {required ImageProvider<Object> image,
  2. required BoxFit fit}
)

Build the given image and fade in to load if network.

Implementation

Widget buildImage({
  required ImageProvider<Object> image,
  required BoxFit fit,
}) {
  return FadeInImage(
    fadeInDuration: const Duration(milliseconds: 200),
    key: ValueKey(image),
    image: image,
    placeholder: MemoryImage(kTransparentImage),
    fit: fit,
  );
}