ImageBlur class

Inheritance

Constructors

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, Future<PaletteGenerator?>? onPaletteReceived(Future<PaletteGenerator>?)?})
const

Properties

alignment Alignment
How to align the image within its bounds. The alignment aligns the given position in the image to the given position in the layout bounds. For example, an Alignment alignment of (-1.0, -1.0) aligns the image to the top-left corner of its layout bounds, while an Alignment alignment of (1.0, 1.0) aligns the bottom right of the image with the bottom right corner of its layout bounds. Similarly, an alignment of (0.0, 1.0) aligns the bottom middle of the image with the middle of the bottom edge of its layout bounds. To display a subpart of an image, consider using a CustomPainter and Canvas.drawImageRect. If the alignment is TextDirection-dependent (i.e. if it is a AlignmentDirectional), then an ambient Directionality widget must be in scope. Defaults to Alignment.center. Alignment, a class with convenient constants typically used to specify an AlignmentGeometry. AlignmentDirectional, like Alignment for specifying alignments relative to text direction.
final
backgroundImage Color
The color of the placeholder image.
final
borderRadius BorderRadiusGeometry
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.
final
cacheHeight int?
The width and height of the image in logical pixels.
final
cacheWidth int?
The width and height of the image in logical pixels.
final
centerSlice Rect?
The center slice for a nine-patch image.
final
color Color?
If non-null, this color is blended with each image pixel using colorBlendMode.
final
colorBlendMode BlendMode?
Used to combine color with this image. The default is BlendMode.srcIn. In terms of the blend mode, color is the source and this image is the destination. See also: BlendMode, which includes an illustration of the effect of each blend mode.
final
errorBuilder ImageErrorWidgetBuilder?
A builder function that is called if an error occurs during image loading.
final
fadeInDuration Duration
The duration of the fade-in effect.
final
filterQuality FilterQuality
The rendering quality of the image.
final
fit BoxFit?
Default BoxFit.cover
final
frameBuilder ImageFrameBuilder?
A builder function that is called if an error occurs during image loading.
final
gapLessPlayback bool
Whether the image should be played in the background when it's not visible.
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
The headers used for http requests.
final
height double?
height non-null, requires the child to have exactly this height.
final
imageUrl String
imageUrl The path or URL of the image to be displayed.
final
isAntiAlias bool
Whether to paint the image with anti-aliasing.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingBuilder ImageLoadingBuilder?
A builder function that is called if an error occurs during image loading.
final
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection.
final
memCacheHeight int?
The height and width of the image in logical pixels.
final
memCacheWidth int?
The height and width of the image in logical pixels.
final
onPaletteReceived → (Future<PaletteGenerator?>? Function(Future<PaletteGenerator>?)?)
Fetches the image and generates the palette color
final
opacity Animation<double>?
If non-null, the value from the Animation is multiplied with the opacity of each image pixel before painting onto the canvas.
final
placeholderColor Color?
The color of the placeholder image.
final
repeat ImageRepeat
How to paint any portions of the layout bounds not covered by the image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
The height and width of the image in logical pixels.
final
semanticLabel String?
The semantic label for this image.
final
tileMode TileMode
The color to use when drawing the image.
final
width double?
width non-null, requires the child to have exactly this width.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ImageBlur>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

imageCircularBlur({Key? key, String? imageNetwork, String? imageAssets, int durationShimmer = 3, int durationBlur = 2, double? size, BoxFit? fit = BoxFit.cover, BlendMode? colorBlendMode = BlendMode.srcIn, Color? color, AlignmentGeometry 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, bool isBlur = true, bool isShimmer = true, Map<String, String>? headers, int? cacheWidth, int? cacheHeight}) Widget
imageHashPreview({required String imagePath, double? width, double? height, Color? placeholderColor = const Color.fromRGBO(224, 224, 224, 1), Curve curve = Curves.easeOut, BoxFit fit = BoxFit.cover, int decodingHeight = 32, int decodingWidth = 32, Duration duration = const Duration(milliseconds: 1000), void onDecoded()?, void onStarted()?, void onReady()?, void onDisplayed()?, BlendMode? colorBlendMode, 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, double scale = 1.0, BorderRadiusGeometry borderRadius = BorderRadius.zero, Future<PaletteGenerator?>? onPaletteReceived(Future<PaletteGenerator>?)?, Key? key}) Widget
imageHashPreviewCircular({required String imagePath, double size = 50.0, Color? placeholderColor, Curve curve = Curves.easeOut, BoxFit fit = BoxFit.cover, int decodingHeight = 32, int decodingWidth = 32, Duration duration = const Duration(milliseconds: 1000), void onDecoded()?, void onStarted()?, void onReady()?, void onDisplayed()?, BlendMode? colorBlendMode, 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, double scale = 1.0, Key? key}) Widget
init({int removeCacheTime = 30}) Future<void>
instance() ImageBlur