shimmerAlignment static method
- AnimationController controller
Creates a shimmer gradient animation alignment.
Implementation
static Animation<Alignment> shimmerAlignment(
AnimationController controller,
) {
return TweenSequence<Alignment>([
TweenSequenceItem(
tween: AlignmentTween(
begin: const Alignment(-1.5, -0.3),
end: const Alignment(1.5, 0.3),
).chain(CurveTween(curve: Curves.easeInOut)),
weight: 1,
),
]).animate(controller);
}