StaggeredAnimationList class

A widget that animates its children with staggered delays.

Each child fades in and slides up in sequence, creating an elegant cascading effect. Commonly used for lists, menus, and modal content.

Example usage:

StaggeredAnimationList(
  children: [
    Text('First item'),
    Text('Second item'),
    Text('Third item'),
  ],
)
Inheritance

Constructors

StaggeredAnimationList.new({Key? key, required List<Widget> children, Duration staggerDelay = const Duration(milliseconds: 50), Duration itemDuration = const Duration(milliseconds: 300), Curve curve = Curves.easeOutCubic, double slideOffset = 20.0, bool animateOnInit = true, bool enabled = true, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.min, double spacing = 0})
const

Properties

animateOnInit bool
Whether to animate on first build.
final
children List<Widget>
The list of widgets to animate.
final
crossAxisAlignment CrossAxisAlignment
Cross axis alignment for the column.
final
curve Curve
Animation curve.
final
enabled bool
Whether to play animations.
final
hashCode int
The hash code for this object.
no setterinherited
itemDuration Duration
Duration of each child's animation.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
Main axis alignment for the column.
final
mainAxisSize MainAxisSize
Main axis size for the column.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideOffset double
Vertical offset for slide animation.
final
spacing double
Spacing between children.
final
staggerDelay Duration
Delay between each child animation.
final

Methods

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