ImageBlur constructor
const
ImageBlur({
- required String imageUrl,
- Key? key,
- BoxFit? fit = BoxFit.cover,
- double? height,
- double? width,
- BlendMode? colorBlendMode = BlendMode.srcIn,
- Color? color,
- Alignment alignment = Alignment.center,
- Rect? centerSlice,
- Animation<
double> ? opacity, - FilterQuality filterQuality = FilterQuality.low,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- bool matchTextDirection = false,
- bool gapLessPlayback = false,
- String? semanticLabel,
- ImageFrameBuilder? frameBuilder,
- ImageLoadingBuilder? loadingBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- bool isAntiAlias = false,
- Map<
String, String> ? headers, - int? cacheWidth,
- int? cacheHeight,
- TileMode tileMode = TileMode.decal,
- Duration fadeInDuration = const Duration(milliseconds: 500),
- Color backgroundImage = const Color.fromRGBO(238, 238, 238, 1),
- double scale = 1.0,
- int? memCacheHeight,
- int? memCacheWidth,
- Color? placeholderColor = const Color.fromRGBO(224, 224, 224, 1),
- BorderRadiusGeometry borderRadius = BorderRadius.zero,
If non-null, the corners of this box are rounded by this BorderRadius.
Applies only to boxes with rectangular shapes; ignored if shape
is not BoxShape.rectangle.
The shape
or the borderRadius won't clip the children of the decorated Container.
If the clip is required, insert a clip widget (e.g., ClipRect, ClipRRect, ClipPath) as the child of the Container.
Be aware that clipping may be costly in terms of performance.
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,
});