scale static method

Widget scale(
  1. AnimationController controller,
  2. Widget child, {
  3. Curve curve = Curves.easeInOut,
})

A transition that scales the child.

Implementation

static Widget scale(
  AnimationController controller,
  Widget child, {
  Curve curve = Curves.easeInOut,
}) {
  return ScaleTransition(
    scale: CurvedAnimation(parent: controller, curve: curve),
    child: child,
  );
}