pulse static method
- AnimationController controller, {
- double minScale = 1.0,
- double maxScale = 1.05,
Creates a pulsing animation for attention-grabbing effects.
Implementation
static Animation<double> pulse(
AnimationController controller, {
double minScale = 1.0,
double maxScale = 1.05,
}) {
return TweenSequence<double>([
TweenSequenceItem(
tween: Tween(begin: minScale, end: maxScale)
.chain(CurveTween(curve: Curves.easeOut)),
weight: 50,
),
TweenSequenceItem(
tween: Tween(begin: maxScale, end: minScale)
.chain(CurveTween(curve: Curves.easeIn)),
weight: 50,
),
]).animate(controller);
}