scale static method
Animates the scale from begin
to end
.
Implementation
static MotionWidgetBuilder scale({
required double begin,
required double end,
Alignment alignment = Alignment.center,
}) =>
(
BuildContext context,
MontageAnimation current,
Animation<double> animation,
Widget? child,
) {
return ScaleTransition(
alignment: alignment,
scale: Tween(
begin: begin,
end: end,
).animate(animation),
child: child,
);
};