transition property

FadeInImageTransition transition
final

How the widget transitions from the placeholder to the image once it has loaded.

FadeInImageTransition.sequential fades the placeholder out before fading the image in, while FadeInImageTransition.fadeInOver fades the image in on top of the still-visible placeholder.

Defaults to FadeInImageTransition.sequential.

This example switches between FadeInImageTransition.sequential and FadeInImageTransition.fadeInOver to compare how each one animates from the placeholder to the image.
link

To create a local project with this code sample, run:
flutter create --sample=widgets.FadeInImage.transition.1 mysample

Implementation

final FadeInImageTransition transition;