zoomIn static method

ScaleTransition zoomIn(
  1. Animation<double> animation,
  2. Widget child
)

缩放进入动画

Implementation

static ScaleTransition zoomIn(
  Animation<double> animation,
  Widget child,
) {
  return ScaleTransition(
    scale: Tween<double>(begin: 0.0, end: 1.0).animate(
      CurvedAnimation(parent: animation, curve: Curves.easeInOut),
    ),
    child: child,
  );
}