CustomImage class

Inheritance

Constructors

CustomImage({Key? key, required ImageProvider<Object> image, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, BorderRadius? borderRadius, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, String? semanticLabel, BlendMode? colorBlendMode, ImageLoadingBuilder? loadingBuilder, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
CustomImage.asset(String assetName, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, String? package, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, String? semanticLabel, AssetBundle? bundle, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
CustomImage.file(String path, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, String? semanticLabel, double scale = 1.0, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
CustomImage.memory(Uint8List bytes, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, double scale = 1.0, String? semanticLabel, BlendMode? colorBlendMode, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, bool gaplessPlayback = false, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, FilterQuality filterQuality = FilterQuality.medium})
CustomImage.network(String url, {Key? key, Size? size, BoxFit? fit, double? width, double? height, BoxShape? shape, double? scaleByWidth, double? scaleByHeight, Color? color, GestureTapCallback? onTap, Curve? curve, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Animation<double>? opacity, int? maxWidth, int? maxHeight, String? cacheKey, Rect? centerSlice, GestureLongPressCallback? onLongPress, ImageFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, BorderRadius? borderRadius, double scale = 1.0, String? semanticLabel, BlendMode? colorBlendMode, ImageLoadingBuilder? loadingBuilder, Color? backgroundColor, Duration? animationDuration, bool isAntiAlias = false, Map<String, String>? headers, bool gaplessPlayback = false, BaseCacheManager? cacheManager, bool matchTextDirection = false, bool excludeFromSemantics = false, AlignmentGeometry alignment = Alignment.center, ImageRepeat repeat = ImageRepeat.noRepeat, void errorListener(Object)?, FilterQuality filterQuality = FilterQuality.medium})

Properties

alignment → AlignmentGeometry
final
animationDuration → Duration?
final
backgroundColor → Color?
final
borderRadius → BorderRadius?
final
centerSlice → Rect?
final
color → Color?
final
colorBlendMode → BlendMode?
final
curve → Curve?
final
errorBuilder → ImageErrorWidgetBuilder?
final
excludeFromSemantics → bool
final
filterQuality → FilterQuality
final
fit → BoxFit
final
frameBuilder → ImageFrameBuilder?
final
gaplessPlayback → bool
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
isAntiAlias → bool
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingBuilder → ImageLoadingBuilder?
final
margin → EdgeInsetsGeometry?
final
matchTextDirection → bool
final
onLongPress → GestureLongPressCallback?
final
onTap → GestureLongPressCallback?
final
opacity → Animation<double>?
final
padding → EdgeInsetsGeometry?
final
repeat → ImageRepeat
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
final
shape → BoxShape
final
width → double?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CustomImage>
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, int wrapWidth = 65}) → 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