rotateInUpLeft static method

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

左上角旋转进入动画

Implementation

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