UnDraw class

Inheritance

Constructors

UnDraw({Key? key, required UnDrawIllustration illustration, required Color color, String? semanticLabel, AlignmentGeometry alignment = Alignment.center, BoxFit fit = BoxFit.contain, BlendMode colorBlendMode = BlendMode.srcIn, double? height, double? width, Widget? placeholder, Widget? errorWidget, EdgeInsets? padding, bool useMemCache = true})

Properties

alignment AlignmentGeometry
How to align the picture within its parent widget.
final
color Color
The color that will replaced for illustration
final
colorBlendMode BlendMode
The color and colorBlendMode arguments, if specified, will be used to set a ColorFilter on any Paints created for this drawing.
final
errorWidget Widget?
The widget that will appear if occurs an error
final
fit BoxFit
How to inscribe the picture into the space allocated during layout. The default is BoxFit.contain.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
If specified, the height to use for the SVG. If unspecified, the SVG will take the height of its parent.
final
illustration UnDrawIllustration
Enum UnDrawIllustration with all supported illustrations
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
padding EdgeInsets?
Empty space to inscribe inside the decoration. The child, if any, is placed inside this padding.
final
placeholder Widget?
The widget that will appear during loading illustration from the internet
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
The Semantics.label for this picture.
final
useMemCache bool
If cache image in memory, if enable reload the same illustration is be more fast
final
width double?
If specified, the width to use for the SVG. If unspecified, the SVG will take the width of its parent.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
renderIllustration(UnDrawIllustration illustration, Color _exColor) Future<SvgPicture>
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