CardLoading class

The CardLoading widget is used to create an easy animation between two colors. Example usage:

CardLoading(
  height: 100,
  animationDuration: Duration(milliseconds: 500),
  cardLoadingTheme: CardLoadingTheme(
    colorOne: Colors.blue,
    colorTwo: Colors.lightBlue,
  ),
)
Inheritance

Constructors

CardLoading({Key? key, required double height, double? width, Widget? child, EdgeInsets? margin, BorderRadius? borderRadius, Duration animationDuration = const Duration(milliseconds: 750), Duration animationDurationTwo = const Duration(milliseconds: 450), CardLoadingTheme cardLoadingTheme = CardLoadingTheme.defaultTheme, Curve curve = Curves.easeInOutSine, bool withChangeDuration = true})
The CardLoading widget is used to create an easy animation between two colors. Example usage:
const

Properties

animationDuration Duration
animationDuration is the duration of the animation from Offset (0, 0) to Offset (0, 1) and has a default value of 750 milliseconds.
final
animationDurationTwo Duration
animationDurationTwo is the duration of the second animation and has a default value of 450 milliseconds.
final
borderRadius BorderRadius?
borderRadius is the radius for either circular or elliptical shapes and has a default value of null.
final
cardLoadingTheme CardLoadingTheme
CardLoadingTheme is used to set the custom color for the CardLoading widget.
final
child Widget?
child is the widget below the CardLoading widget in the widget tree.
final
curve Curve
The curve to use in the forward direction.
final
hashCode int
The hash code for this object.
no setterinherited
height double
height is the height of the CardLoading widget and is required.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
margin EdgeInsets?
margin is the padding around the widget and has a default value of EdgeInsets.zero.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
width is the width of the CardLoading widget and has a default value of double.maxInfinite.
final
withChangeDuration bool
withChangeDuration determines if there is a difference in the animationDuration between colorOne and colorTwo.
final

Methods

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