rotateInDownLeft static method

RotationTransition rotateInDownLeft(
  1. Animation<double> animation,
  2. Widget child
)

左上角旋转进入动画

Implementation

static RotationTransition rotateInDownLeft(
  Animation<double> animation,
  Widget child,
) {
  return RotationTransition(
    alignment: Alignment.topLeft,
    turns: Tween<double>(begin: -0.25, end: 0.0).animate(
      CurvedAnimation(parent: animation, curve: Curves.elasticOut),
    ),
    child: child,
  );
}