ImageFade constructor
const
ImageFade({
- Key? key,
- Widget? placeholder,
- ImageProvider<
Object> ? image, - Curve curve = Curves.linear,
- Duration duration = const Duration(milliseconds: 300),
- Duration? syncDuration,
- double? width,
- double? height,
- double scale = 1,
- BoxFit fit = BoxFit.scaleDown,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool excludeFromSemantics = false,
- String? semanticLabel,
- ImageFadeLoadingBuilder? loadingBuilder,
- ImageFadeErrorBuilder? errorBuilder,
Creates a widget that displays a placeholder widget while a specified image loads, then cross-fades to the loaded image.
Implementation
const ImageFade({
Key? key,
this.placeholder,
this.image,
this.curve = Curves.linear,
this.duration = const Duration(milliseconds: 300),
this.syncDuration,
this.width,
this.height,
this.scale = 1,
this.fit = BoxFit.scaleDown,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.matchTextDirection = false,
this.excludeFromSemantics = false,
this.semanticLabel,
this.loadingBuilder,
this.errorBuilder,
}) : super(key: key);