pulse static method

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

脉动动画

Implementation

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