buildImage method
- {required ImageProvider<
Object> image, - 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,
);
}