ImageViewer class

Inheritance

Constructors

ImageViewer({required double? width, required double? height, String? urlImage, String? assetImage, Widget? onErrorWidget, Widget? onLoadingWidget, Color? backgroundColor, Border? border, BoxShadow? shadow, BorderRadius? borderRadius, EdgeInsetsGeometry? margin, BoxFit? fit, BoxShape? shape, Object? tag, Duration? duration, int? maxSize, Map<String, String>? headers, Key? key, IconData? errorIcon})
ImageViewer.circle({required double dimension, String? urlImage, String? assetImage, Widget? onErrorWidget, Widget? onLoadingWidget, Color? backgroundColor, Border? border, BoxShadow? shadow, EdgeInsetsGeometry? margin, BoxFit? fit, Object? tag, Duration? duration, int? maxSize, Map<String, String>? headers, Key? key, IconData? errorIcon})
ImageViewer.expand({String? urlImage, String? assetImage, Widget? onErrorWidget, Widget? onLoadingWidget, Color? backgroundColor, BorderRadius? borderRadius, Border? border, BoxShadow? shadow, EdgeInsetsGeometry? margin, BoxFit? fit, Object? tag, Duration? duration, int? maxSize, Map<String, String>? headers, Key? key, IconData? errorIcon})
ImageViewer.square({required double dimension, String? urlImage, String? assetImage, Widget? onErrorWidget, Widget? onLoadingWidget, Color? backgroundColor, BorderRadius? borderRadius, Border? border, BoxShadow? shadow, EdgeInsetsGeometry? margin, BoxFit? fit, Object? tag, Duration? duration, int? maxSize, Map<String, String>? headers, Key? key, IconData? errorIcon})

Properties

assetImage String?
Only load image from assets
finalinherited
backgroundColor Color?
finalinherited
border Border?
finalinherited
borderRadius BorderRadius?
finalinherited
closeColor Color?
finalinherited
controller ImageController?
finalinherited
deleteIcon IconData?
finalinherited
dragIcon IconData?
finalinherited
duration Duration?
finalinherited
emptyWidget Widget?
finalinherited
errorIcon IconData?
finalinherited
expandIcon IconData?
finalinherited
fit BoxFit
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
only for viewer
finalinherited
height double?
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsetsGeometry
finalinherited
maxSize int?
finalinherited
onAdd GestureTapCallback?
finalinherited
onDelete GestureTapCallback?
finalinherited
onErrorWidget Widget?
finalinherited
onLoadingWidget Widget?
finalinherited
readOnly bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadow BoxShadow?
finalinherited
shape BoxShape
finalinherited
tag Object?
finalinherited
uploadIcon IconData?
finalinherited
urlImage String?
Only load image from https or http
finalinherited
viewerBlur bool
finalinherited
viewerBlurSigma double
finalinherited
width double?
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<ImageBody>
Creates the mutable state for this widget at a given 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