rotateOut static method

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

旋转退出动画

Implementation

static RotationTransition rotateOut(
  Animation<double> animation,
  Widget child,
) {
  return RotationTransition(
    turns: Tween<double>(begin: 0.0, end: 1.0).animate(
      CurvedAnimation(
        parent: animation,
        curve: Curves.easeOut,
      ),
    ),
    child: FadeTransition(
      opacity: animation,
      child: child,
    ),
  );
}