rotateInUpRight static method

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

右上角旋转进入动画

Implementation

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