ImageBlur constructor

const ImageBlur({
  1. required String imageUrl,
  2. Key? key,
  3. BoxFit? fit = BoxFit.cover,
  4. double? height,
  5. double? width,
  6. BlendMode? colorBlendMode = BlendMode.srcIn,
  7. Color? color,
  8. Alignment alignment = Alignment.center,
  9. Rect? centerSlice,
  10. Animation<double>? opacity,
  11. FilterQuality filterQuality = FilterQuality.low,
  12. ImageRepeat repeat = ImageRepeat.noRepeat,
  13. bool matchTextDirection = false,
  14. bool gapLessPlayback = false,
  15. String? semanticLabel,
  16. ImageFrameBuilder? frameBuilder,
  17. ImageLoadingBuilder? loadingBuilder,
  18. ImageErrorWidgetBuilder? errorBuilder,
  19. bool isAntiAlias = false,
  20. Map<String, String>? headers,
  21. int? cacheWidth,
  22. int? cacheHeight,
  23. TileMode tileMode = TileMode.decal,
  24. Duration fadeInDuration = const Duration(milliseconds: 500),
  25. Color backgroundImage = const Color.fromRGBO(238, 238, 238, 1),
  26. double scale = 1.0,
  27. int? memCacheHeight,
  28. int? memCacheWidth,
  29. Color? placeholderColor = const Color.fromRGBO(224, 224, 224, 1),
  30. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  31. Future<PaletteGenerator?>? onPaletteReceived(
    1. Future<PaletteGenerator>?
    )?,
})

Implementation

const ImageBlur({
  required this.imageUrl,
  Key? key,
  this.fit = BoxFit.cover,
  this.height,
  this.width,
  this.colorBlendMode = BlendMode.srcIn,
  this.color,
  this.alignment = Alignment.center,
  this.centerSlice,
  this.opacity,
  this.filterQuality = FilterQuality.low,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.gapLessPlayback = false,
  this.semanticLabel,
  this.frameBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.isAntiAlias = false,
  this.headers,
  this.cacheWidth,
  this.cacheHeight,
  this.tileMode = TileMode.decal,
  this.fadeInDuration = const Duration(milliseconds: 500),
  this.backgroundImage = const Color.fromRGBO(238, 238, 238, 1),
  this.scale = 1.0,
  this.memCacheHeight,
  this.memCacheWidth,
  this.placeholderColor = const Color.fromRGBO(224, 224, 224, 1),
  this.borderRadius = BorderRadius.zero,
  this.onPaletteReceived,
});