dependencies/flutter_animate/src/effects/effects
library
Classes
-
AlignEffect
-
An effect that animates the target between the specified begin and end
alignments (via Align).
Defaults to
begin=Align.topCenter, end=Align.center
.
-
BlurEffect
-
An effect that animates a blur on the target between the
specified begin and end blur radiuses (via ImageFiltered).
Defaults to
begin=0, end=4
.
-
BoxShadowEffect
-
An effect that animates a BoxShadow between begin and end (via DecoratedBox).
A value of
null
for either will be interpreted as a shadow that matches the other shadow but
with a zero offset and blurRadius.
You can also specify a borderRadius that defines rounded corners for the shadow.
Defaults to begin=null, end=BoxShadow(color: Color(0x80000000), blurRadius: 8.0, offset: Offset(0.0, 4.0))
-
CallbackEffect
-
An effect that calls a callback function at a particular point in the animation.
It includes a boolean value indicating if the animation is playing in reverse.
-
ColorEffect
-
An effect that animates a Color between begin and end, composited with
the target using blendMode (via ColorFiltered). A color value of
null
will be interpreted as a fully transparent version of the other color.
Defaults to begin=null, end=Color(0x800099FF)
.
-
CrossfadeEffect
-
An effect that crossfades the incoming child (including preceeding effects)
with a new widget (via Stack and FadeTransition). It uses a builder so
that the effect can be reused, but note that the builder is only called once
when the effect initially builds.
-
CustomEffect
-
Provide an easy way to add custom animated effects via a builder method that
accepts a BuildContext, target child, and calculated animation value
between begin and end.
-
Effect<T>
-
An empty effect that all other effects extend.
It can be added to Animate, but has no visual effect.
-
ElevationEffect
-
An effect that animates a Material elevation shadow between begin and end (via PhysicalModel).
You can also specify a shadow color and borderRadius to add rounded corners.
It defaults to
begin=0, end=8
.
-
FadeEffect
-
Animates the opacity of the target between the specified
begin and end values (via FadeTransition).
It defaults to
begin=0, end=1
.
-
FlipEffect
-
An effect that animates a 2.5D card flip rotation effect (via Transform).
The effect can be horizontal or vertical.
-
FollowPathEffect
-
An effect that moves the target following the specified path (via Transform).
The path coordinates are relative to the target's nominal position.
-
ListenEffect
-
An effect that calls a callback function with its current animation value
between begin and end.
-
MoveEffect
-
An effect that moves the target between the specified begin and end
offsets (via Transform.translate).
Defaults to
begin=Offset(0, -16), end=Offset.zero
.
transformHitTests is simply passed on to Transform.translate.
-
RotateEffect
-
Effect that rotates the target between begin and end (via RotationTransition).
Values are specified in "turns" (360° or 2𝝅 radians), so a
begin=0.25, end=2.25
would start with the child
rotated a quarter turn clockwise (90 degrees), and rotate two full turns (ending at 810 degrees).
Defaults to begin=-1.0, end=0
.
-
SaturateEffect
-
An effect that animates the color saturation of the target. The begin and
end values indicate the saturation level, where
0
is fully desaturated
(ie. grayscale) and 1
is normal saturation. Values >1
will oversaturate.
Defaults to begin=0, end=1
.
-
ScaleEffect
-
An effect that scales the target between the specified begin and end
offset values (via Transform.scale).
Defaults to
begin=Offset(0,0), end=Offset(1,1)
.
-
ShaderEffect
-
Effect that applies an animated fragment shader to a target. See
Writing and using fragment shaders
for information on how to include shaders in your app.
-
ShaderUpdateDetails
-
Passed to the ShaderEffect.update callback. Contains information necessary
for updating the shader:
-
ShakeEffect
-
Effect that shakes the target, using translation, rotation, or both (via Transform).
-
ShimmerEffect
-
An effect that animates gradient overlay effects (via ShaderMask), such as the shimmer loading effect
popularized by facebook.
-
SlideEffect
-
An effect that moves the target based on a fraction of its size
per the specified begin and end offsets (via SlideTransition).
Defaults to
begin=Offset(0, -0.5), end=Offset.zero
(slide down from half its height).
-
SwapEffect
-
An effect that swaps out the incoming child for a new child at a particular
point in time. This includes all preceding effects. It uses a builder so
that the effect can be reused, but note that the builder is only called once
when the effect initially builds.
-
ThenEffect
-
A special convenience "effect" that makes it easier to sequence effects after
one another. It does this by establishing a new baseline time equal to the
previous effect's end time and its own optional delay.
All subsequent effect delays are relative to this new baseline.
-
TintEffect
-
An effect that applies an animated color tint to the target (via ColorFiltered).
The begin and end values indicate the strength of the tint (0 - 0% tint, 1 - 100% tint).
Defaults to
begin=0, end=1
.
-
ToggleEffect
-
An effect that allows you to toggle the behavior of a builder function at a certain
point in time.
-
VisibilityEffect
-
An effect that toggles the visibility of the target (via Visibility).
Defaults to
end=true
.