ImageHandler class

Constructors

ImageHandler.new({required ImageProvider<Object> image, required double? width, required double? height, required BoxFit? fit, required AlignmentGeometry alignment, required ImageRepeat repeat, required bool matchTextDirection, required Color? color, required BlendMode? colorBlendMode, required FilterQuality filterQuality, required OctoImageBuilder? imageBuilder, required OctoPlaceholderBuilder? placeholderBuilder, required OctoProgressIndicatorBuilder? progressIndicatorBuilder, required OctoErrorBuilder? errorBuilder, required Duration placeholderFadeInDuration, required Duration fadeOutDuration, required Curve fadeOutCurve, required Duration fadeInDuration, required Curve fadeInCurve, required bool alwaysShowPlaceHolder})

Properties

alignment AlignmentGeometry
How to align the image within its bounds.
final
alwaysShowPlaceHolder bool
Indicates that placeholder should always be shown, even if the image was loaded in the first frame.
getter/setter pair
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.
final
errorBuilder OctoErrorBuilder?
Widget displayed while the target imageUrl failed loading.
final
fadeInCurve Curve
The curve of the fade-in animation for the imageUrl.
final
fadeInDuration Duration
The duration of the fade-in animation for the imageUrl.
final
fadeOutCurve Curve
The curve of the fade-out animation for the placeholderBuilder.
final
fadeOutDuration Duration
The duration of the fade-out animation for the placeholderBuilder.
final
filterQuality FilterQuality
Target the interpolation quality for image scaling.
final
fit BoxFit?
How to inscribe the image into the space allocated during layout.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
If non-null, require the image to have this height.
final
image ImageProvider<Object>
The image that should be shown.
final
imageBuilder OctoImageBuilder?
Optional builder to further customize the display of the image.
final
matchTextDirection bool
Whether to paint the image in the direction of the TextDirection.
final
placeholderBuilder OctoPlaceholderBuilder?
Widget displayed while the target imageUrl is loading.
final
placeholderFadeInDuration Duration
The duration of the fade-in animation for the placeholderBuilder.
final
progressIndicatorBuilder OctoProgressIndicatorBuilder?
Widget displayed while the target imageUrl is loading.
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
width double?
If non-null, require the image to have this width.
final

Methods

build(BuildContext context) Widget
errorWidgetBuilder() ImageErrorWidgetBuilder?
imageFrameBuilder() ImageFrameBuilder
imageLoadingBuilder() ImageLoadingBuilder?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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