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
Available Extensions

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. [...]
final, inherited
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. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
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.
read-only, inherited

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. [...]
@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
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. [...]
@nonVirtual, inherited

Static Methods

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