AnimationConfiguration class

AnimationConfiguration provides the configuration used as a base for every children Animation. Configuration made in AnimationConfiguration can be overridden in Animation children if needed.

Depending on the scenario in which you will present your animations, you should use one of AnimationConfiguration's named constructors.

AnimationConfiguration.synchronized if you want to launch all the children's animations at the same time.

AnimationConfiguration.staggeredList if you want to delay the animation of each child to produce a single-axis staggered animations (from top to bottom or from left to right).

AnimationConfiguration.staggeredGrid if you want to delay the animation of each child to produce a dual-axis staggered animations (from left to right and top to bottom).

Inheritance

Constructors

AnimationConfiguration.staggeredGrid({Key? key, required int position, Duration duration = const Duration(milliseconds: 225), Duration? delay, required int columnCount, required Widget child})
Configure the children's animation to be staggered.
const
AnimationConfiguration.staggeredList({Key? key, required int position, Duration duration = const Duration(milliseconds: 225), Duration? delay, required Widget child})
Configure the children's animation to be staggered.
const
AnimationConfiguration.synchronized({Key? key, Duration duration = const Duration(milliseconds: 225), required Widget child})
Configure the children's animation to be synchronized (all the children's animation start at the same time).
const

Properties

child Widget
The widget below this widget in the tree.
finalinherited
columnCount int
The column count of the grid
final
delay Duration?
The delay between the beginning of two children's animations.
final
duration Duration
The duration of each child's animation.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
position int
Index used as a factor to calculate the delay of each child's animation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
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
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
updateShouldNotify(covariant InheritedWidget oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) AnimationConfiguration?
toStaggeredList({Duration? duration, Duration? delay, required Widget childAnimationBuilder(Widget), required List<Widget> children}) List<Widget>
Helper method to apply a staggered animation to the children of a Column or Row.