shrink static method
Scale animation, from out to in (ScaleTransition)
Implementation
static shrink(Animation<double> animation,
Animation<double> secondaryAnimation, Widget child) {
return ScaleTransition(
scale: Tween<double>(
begin: 1.2,
end: 1.0,
).animate(
CurvedAnimation(
parent: animation,
curve: const Interval(
0.50,
1.00,
curve: Curves.linear,
),
),
),
child: child,
);
}