TolerantNetworkImage class

图片处理方式:快速缩略模板 图片处理方式:数据万象https://cloud.tencent.com/document/product/460/36542

Inheritance
Implementers

Constructors

TolerantNetworkImage({Key? key, ImageDealType? imageDealType, double? width, double? height, BorderRadiusGeometry? borderRadius, required String imageUrl, void lastImageUrlGetBlock(String lastImageUrl)?, BoxFit? fit, PlaceholderWidgetBuilder? placeholder, LoadingErrorWidgetBuilder? errorWidget, Duration? placeholderFadeInDuration, Duration? fadeOutDuration, Duration fadeInDuration = Duration.zero, bool gaplessPlayback = true, void loadStateChanged(ExtendedImageState? state, String imageUrl)?, ProgressIndicatorBuilder? progressIndicatorBuilder})

Properties

borderRadius BorderRadiusGeometry?
finalinherited
errorWidget LoadingErrorWidgetBuilder?
finalinherited
fadeInDuration Duration?
The duration of the fade-in animation for the imageUrl.
finalinherited
fadeOutDuration Duration?
The duration of the fade-out animation for the placeholder.
finalinherited
fit BoxFit?
finalinherited
gaplessPlayback bool?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
finalinherited
imageUrl String
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadStateChanged → void Function(ExtendedImageState? state, String imageUrl)?
finalinherited
placeholder PlaceholderWidgetBuilder?
finalinherited
placeholderFadeInDuration Duration?
The duration of the fade-in animation for the placeholder.
finalinherited
progressIndicatorBuilder ProgressIndicatorBuilder?
Widget displayed while the target imageUrl is loading.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visibleFraction double
getter/setter pairinherited
width double?
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
buildImage(BuildContext context) Widget
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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