Lottie class
A widget to display a loaded LottieComposition. The controller property allows to specify a custom AnimationController that will drive the animation. If controller is null, the animation will play automatically and the behavior could be adjusted with the properties animate, repeat and reverse.
- Inheritance
- Available extensions
- BackInDownExtension
- BackInLeftExtension
- BackInRightExtension
- BackInUpExtension
- BackOutDownExtension
- BackOutLeftExtension
- BackOutRightExtension
- BackOutUpExtension
- BounceExtension
- BounceInDownExtension
- BounceInExtension
- BounceInLeftExtension
- BounceInRightExtension
- BounceInUpExtension
- DanceExtension
- ElasticInDownExtension
- ElasticInExtension
- ElasticInLeftExtension
- ElasticInRightExtension
- ElasticInUpExtension
- FadeInDownBigExtension
- FadeInDownExtension
- FadeInExtension
- FadeInLeftBigExtension
- FadeInLeftExtension
- FadeInRightBigExtension
- FadeInRightExtension
- FadeInUpBigExtension
- FadeInUpExtension
- FadeOutDownBigExtension
- FadeOutDownExtension
- FadeOutExtension
- FadeOutLeftBigExtension
- FadeOutLeftExtension
- FadeOutRightBigExtension
- FadeOutRightExtension
- FadeOutUpBigExtension
- FadeOutUpExtension
- FlashExtension
- FlipInXExtension
- FlipInYExtension
- FlipXExtension
- FlipYExtension
- HeartBeatExtension
- JelloExtension
- JelloInExtension
- MoveArcExtension
- MoveExtension
- PulseExtension
- RouletteExtension
- RubberBandExtension
- ShakeXExtension
- ShakeYExtension
- SlideDownExtension
- SlideInLeftExtension
- SlideInRightExtension
- SlideUpExtension
- SpinExtension
- SpinPerfectExtension
- SwingExtension
- TadaExtension
- WobbleExtension
- ZoomInDownExtension
- ZoomInExtension
- ZoomOutExtension
Constructors
-
Lottie({Key? key, required LottieComposition? composition, Animation<
double> ? controller, double? width, double? height, AlignmentGeometry? alignment, BoxFit? fit, bool? animate, FrameRate? frameRate, bool? repeat, bool? reverse, LottieDelegates? delegates, LottieOptions? options, bool? addRepaintBoundary, FilterQuality? filterQuality, RenderCache? renderCache}) -
const
Properties
- addRepaintBoundary → bool
-
Indicate to automatically add a
RepaintBoundarywidget around the animation. This allows to optimize the app performance by isolating the animation in its ownLayer.final - alignment → AlignmentGeometry?
-
How to align the composition within its bounds.
final
- animate → bool
-
If no controller is specified, this value indicate whether or not the
Lottie animation should be played automatically (default to true).
If there is an animation controller specified, this property has no effect.
final
- composition → LottieComposition?
-
The Lottie composition to animate.
It could be parsed asynchronously with
LottieComposition.fromBytes.final -
controller
→ Animation<
double> ? -
The animation controller to animate the Lottie animation.
If null, a controller is automatically created by this class and is configured
with the properties animate, reverse
final
- delegates → LottieDelegates?
-
A group of callbacks to further customize the lottie animation.
final
- filterQuality → FilterQuality?
-
The quality of the image layer. See FilterQuality
FilterQuality.high is highest quality but slowest.
final
- fit → BoxFit?
-
How to inscribe the Lottie composition into the space allocated during layout.
final
- frameRate → FrameRate?
-
The number of frames per second to render.
Use
FrameRate.compositionto use the original frame rate of the Lottie composition (default) UseFrameRate.maxto advance the animation progression at every frame.final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
If non-null, require the composition to have this height.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- options → LottieOptions?
-
Some options to enable/disable some feature of Lottie
final
- renderCache → RenderCache?
-
Opt-in to a special render mode where the frames of the animation are
lazily rendered and kept in a cache.
Subsequent runs of the animation will be cheaper to render.
final
- repeat → bool
-
Specify that the automatic animation should repeat in a loop (default to true).
The property has no effect if animate is false or controller is not null.
final
- reverse → bool
-
Specify that the automatic animation should repeat in a loop in a "reverse"
mode (go from start to end and then continuously from end to start).
It default to false.
The property has no effect if animate is false, repeat is false or controller is not null.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double?
-
If non-null, requires the composition to have this width.
final
Methods
-
backInDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BackInDownExtension extension
-
backInLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BackInLeftExtension extension
-
backInRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BackInRightExtension extension
-
backInUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BackInUpExtension extension
-
backOutDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double to = _defaultTo}) → Widget -
Available on Widget, provided by the BackOutDownExtension extension
-
backOutLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BackOutLeftExtension extension
-
backOutRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double to = _defaultTo}) → Widget -
Available on Widget, provided by the BackOutRightExtension extension
-
backOutUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double to = _defaultTo}) → Widget -
Available on Widget, provided by the BackOutUpExtension extension
-
bounce(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BounceExtension extension
-
bounceIn(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the BounceInExtension extension
-
bounceInDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BounceInDownExtension extension
-
bounceInLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BounceInLeftExtension extension
-
bounceInRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BounceInRightExtension extension
-
bounceInUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the BounceInUpExtension extension
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< Lottie> -
Creates the mutable state for this widget at a given location in the tree.
override
-
dance(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the DanceExtension extension
-
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
-
elasticIn(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the ElasticInExtension extension
-
elasticInDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ElasticInDownExtension extension
-
elasticInLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ElasticInLeftExtension extension
-
elasticInRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ElasticInRightExtension extension
-
elasticInUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ElasticInUpExtension extension
-
fadeIn(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the FadeInExtension extension
Wraps the widget with a FadeIn animation. -
fadeInDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInDownExtension extension
-
fadeInDownBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInDownBigExtension extension
-
fadeInLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInLeftExtension extension
-
fadeInLeftBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInLeftBigExtension extension
-
fadeInRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInRightExtension extension
-
fadeInRightBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInRightBigExtension extension
-
fadeInUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInUpExtension extension
-
fadeInUpBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeInUpBigExtension extension
-
fadeOut(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the FadeOutExtension extension
-
fadeOutDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutDownExtension extension
-
fadeOutDownBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutDownBigExtension extension
-
fadeOutLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutLeftExtension extension
-
fadeOutLeftBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutLeftBigExtension extension
-
fadeOutRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutRightExtension extension
-
fadeOutRightBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutRightBigExtension extension
-
fadeOutUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutUpExtension extension
-
fadeOutUpBig(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the FadeOutUpBigExtension extension
-
flash(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the FlashExtension extension
-
flipInX(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the FlipInXExtension extension
-
flipInY(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the FlipInYExtension extension
-
flipX(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double perspective = _defaultPerspective}) → Widget -
Available on Widget, provided by the FlipXExtension extension
-
flipY(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double perspective = _defaultPerspective}) → Widget -
Available on Widget, provided by the FlipYExtension extension
-
heartBeat(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the HeartBeatExtension extension
-
jello(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the JelloExtension extension
-
jelloIn(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish}) → Widget -
Available on Widget, provided by the JelloInExtension extension
-
moveTo(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double left = 0.0, double right = 0.0, double top = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the MoveExtension extension
-
moveToArc(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, bool upward = false, double left = 0.0, double right = 0.0, double top = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the MoveArcExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pulse(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double from = _defaultFrom, double to = _defaultTo}) → Widget -
Available on Widget, provided by the PulseExtension extension
-
roulette(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double spins = _defaultSpins}) → Widget -
Available on Widget, provided by the RouletteExtension extension
-
rubberBand(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the RubberBandExtension extension
-
shakeX(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ShakeXExtension extension
-
shakeY(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ShakeYExtension extension
-
slideDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the SlideDownExtension extension
-
slideInLeft(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the SlideInLeftExtension extension
-
slideInRight(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the SlideInRightExtension extension
-
slideUp(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = Curves.easeOut, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the SlideUpExtension extension
-
spin(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double spins = _defaultSpins}) → Widget -
Available on Widget, provided by the SpinExtension extension
-
spinPerfect(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop, double spins = _defaultSpins}) → Widget -
Available on Widget, provided by the SpinPerfectExtension extension
-
swing(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the SwingExtension extension
-
tada(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the TadaExtension extension
-
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
-
wobble(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool infinite = false, bool manualTrigger = false, Duration loopDelay = Duration.zero, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, AnimateDoLoopCallback? onLoop}) → Widget -
Available on Widget, provided by the WobbleExtension extension
-
zoomIn(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ZoomInExtension extension
-
zoomInDown(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ZoomInDownExtension extension
-
zoomOut(
{Key? key, Duration duration = _defaultDuration, Duration delay = Duration.zero, Curve curve = _defaultCurve, bool animate = true, bool manualTrigger = false, AnimateDoControllerCallback? controller, AnimateDoFinishCallback? onFinish, double from = _defaultFrom}) → Widget -
Available on Widget, provided by the ZoomOutExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- cache → LottieCache
-
The cache instance for recently loaded Lottie compositions.
no setter
- skipUnchangedFrames ↔ bool
-
Whether the automatic animation schedules no engine frame at all while
the composition keeps drawing the same thing: a pause between two
movements, a hold keyframe...
getter/setter pair
- throttleAutoAnimation ↔ bool
-
Whether the automatic animation (when no controller is given) schedules
engine frames at the composition frame rate instead of on every vsync.
getter/setter pair
- traceEnabled ↔ bool
-
getter/setter pair
Static Methods
-
asset(
String name, {Animation< double> ? controller, bool? animate, FrameRate? frameRate, bool? repeat, bool? reverse, LottieDelegates? delegates, LottieOptions? options, void onLoaded(LottieComposition)?, LottieImageProviderFactory? imageProviderFactory, Key? key, AssetBundle? bundle, LottieFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, double? width, double? height, BoxFit? fit, AlignmentGeometry? alignment, String? package, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, LottieDecoder? decoder, RenderCache? renderCache, bool? backgroundLoading}) → LottieBuilder - Creates a widget that displays an LottieComposition obtained from an AssetBundle.
-
file(
Object file, {Animation< double> ? controller, FrameRate? frameRate, bool? animate, bool? repeat, bool? reverse, LottieDelegates? delegates, LottieOptions? options, LottieImageProviderFactory? imageProviderFactory, void onLoaded(LottieComposition)?, Key? key, LottieFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, double? width, double? height, BoxFit? fit, AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, LottieDecoder? decoder, RenderCache? renderCache, bool? backgroundLoading}) → LottieBuilder - Creates a widget that displays an LottieComposition obtained from a File.
-
memory(
Uint8List bytes, {Animation< double> ? controller, FrameRate? frameRate, bool? animate, bool? repeat, bool? reverse, LottieDelegates? delegates, LottieOptions? options, LottieImageProviderFactory? imageProviderFactory, void onLoaded(LottieComposition)?, Key? key, LottieFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, double? width, double? height, BoxFit? fit, AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, LottieDecoder? decoder, RenderCache? renderCache, bool? backgroundLoading}) → LottieBuilder - Creates a widget that displays an LottieComposition obtained from a Uint8List.
-
network(
String url, {Client? client, Map< String, String> ? headers, Animation<double> ? controller, FrameRate? frameRate, bool? animate, bool? repeat, bool? reverse, LottieDelegates? delegates, LottieOptions? options, LottieImageProviderFactory? imageProviderFactory, void onLoaded(LottieComposition)?, Key? key, LottieFrameBuilder? frameBuilder, ImageErrorWidgetBuilder? errorBuilder, double? width, double? height, BoxFit? fit, AlignmentGeometry? alignment, bool? addRepaintBoundary, FilterQuality? filterQuality, WarningCallback? onWarning, LottieDecoder? decoder, RenderCache? renderCache, bool? backgroundLoading}) → LottieBuilder - Creates a widget that displays an LottieComposition obtained from the network.