AnimatedEffectExt extension
Provides extension methods for Widget to animate it's appearance.
- on
Methods
-
animate(
{required Object? trigger, Duration duration = const Duration(milliseconds: 350), Curve curve = appleEaseInOut, int repeat = 0, bool reverse = false, bool startImmediately = false, Duration delay = Duration.zero, VoidCallback? onEnd, BooleanCallback? playIf}) → Widget - Animate the effects applied to this widget.
-
animateAfter(
{Duration duration = const Duration(milliseconds: 350), Curve curve = appleEaseInOut, int repeat = 0, bool reverse = false, Duration delay = Duration.zero, VoidCallback? onEnd, BooleanCallback? playIf}) → Widget - Animate the effects applied to this widget after the last animation in the chain ends.
-
oneShot(
{Duration duration = const Duration(milliseconds: 350), Curve curve = appleEaseInOut, int repeat = 0, bool reverse = false, Duration delay = Duration.zero, VoidCallback? onEnd, BooleanCallback? playIf}) → AnimatedEffect - Animate the effects applied to this widget.
-
resetAll(
) → Widget - Resets all animations in the chain by going down the children tree and resetting all animations.