AnimatedSequence class
A widget to play a sequence of AnimatedVectorData in a controlled manner. The widget uses a SequenceMachine under the hood.
Requires a list of SequenceEntrys to animate and an AnimatedSequenceController to control the overall animation flow.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedSequence
Constructors
-
AnimatedSequence({required List<
SequenceEntry> items, required AnimatedSequenceController controller, bool autostart = true, Size? size, bool applyTheme = false, Color? colorOverride, BlendMode? blendMode, Key? key}) -
Create a new instance of AnimatedSequence.
const
Properties
- applyTheme → bool
-
Whether to apply a custom color over the items.
It's recommended to use this on vectors that have flat colors.
final
- autostart → bool
-
Whether the sequence should start once the widget is built.
If set to false, the animation will start at time 0 of the first sequence item
that can be resolved.
final
- blendMode → BlendMode?
-
The blend mode to use when applying a color override.
final
- colorOverride → Color?
-
A color to use to color the entire vector, discarding any color variation
present in the animation itself.
final
- controller → AnimatedSequenceController
-
The AnimatedSequenceController to use to control the sequence flow.
The instance passed must not change once it has been attached.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
SequenceEntry> -
A list of
SequenceEntry
s to animate, usually an instance of either SequenceItem or SequenceGroup.final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size?
-
The size at which to render the animation to.
This overrides the value specified in the data AnimatedVectorData.viewportSize.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AnimatedSequence> -
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