VxShimmer class

VxShimmer widget can be used to provide shimmer effect to any widget.

Inheritance
Available Extensions

Constructors

VxShimmer({Key key, @required Widget child, Gradient gradient, Duration duration = const Duration(seconds: 1), int count = 10000, bool showAnimation = true, bool showGradient = false, Color primaryColor = Colors.grey, Color secondaryColor})
const

Properties

child Widget
The child of type Widget to display shimmer effect.
final
count int
Controls the animation shimmerEffectCount. The default value is '0', that displays child Widget's shimmer effect forever.
final
duration Duration
Controls the speed of the shimmer effect. The default value is 1 second.
final
gradient Gradient
Controls the child's shades of color using Linear gradient. Child Widget only takes gradient color, If showGradient is true.
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
primaryColor Color
Defines the primary color of the child's shimmer effect. Child Widget takes primary color, only if showGradient is false. Default showGradient will be false.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secondaryColor Color
defines the secondary color of the child's shimmer effect. Child Widget takes secondary color, only if showGradient is false. Default showGradient will be false.
final
showAnimation bool
Controls animation effect, defaults true state that makes animation active.
final
showGradient bool
If true, takes gradient color gradient for the child's shimmer effect. Default set to false.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _VxShimmerState
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. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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. [...]
@nonVirtual, inherited