PlaceholderLines class

Inheritance

Constructors

PlaceholderLines({Key? key, required int count, TextAlign align = TextAlign.left, Color color = const Color(0xFFDEDEDE), double minOpacity = 0.4, double maxOpacity = 0.94, double maxWidth = .95, double minWidth = .72, double lineHeight = 12, bool animate = false, Widget? customAnimationOverlay, Color? animationOverlayColor, bool rebuildOnStateChange = false})
const

Properties

align TextAlign
Defines alignment for all the lines generated
final
animate bool
if true, plays a nice animation of an overlay
final
animationOverlayColor Color?
Set a custom animationOverlayColor
final
color Color
Defines color to be used as base when building each line
final
count int
Defines how many lines to build
final
customAnimationOverlay Widget?
Use a customAnimationOverlay to display instead of the default one
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineHeight double
Defines the line height defaults to 12
final
maxOpacity double
Defines the max value for the opacity that a line could have, since color opacity it's generated randomly , defaults to 0.94
final
maxWidth double
Defines the max width that a line could have, since width it's generated randomly defaults to .95
final
minOpacity double
Defines the min value for the opacity that a line could have, since color opacity it's generated randomly , this prevents the value from going to low (making it invisible) defaults to 0.4
final
minWidth double
Defines the min width that a line could have, since width it's generated randomly defaults to .72
final
rebuildOnStateChange bool
If true , this will cause the lines to be rebuild with different widths (randomly generated) every time any parent widget rebuilds it's state defaults to false
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _PlaceholderLinesState
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}) 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