pulse static method
脉动动画
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,
);
}