ImageFade constructor

const ImageFade({
  1. Key? key,
  2. Widget? placeholder,
  3. ImageProvider<Object>? image,
  4. Curve curve = Curves.linear,
  5. Duration duration = const Duration(milliseconds: 300),
  6. Duration? syncDuration,
  7. double? width,
  8. double? height,
  9. double scale = 1,
  10. BoxFit fit = BoxFit.scaleDown,
  11. Alignment alignment = Alignment.center,
  12. ImageRepeat repeat = ImageRepeat.noRepeat,
  13. bool matchTextDirection = false,
  14. bool excludeFromSemantics = false,
  15. String? semanticLabel,
  16. ImageFadeLoadingBuilder? loadingBuilder,
  17. 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);