Done constructor

Done(
  1. Widget done, {
  2. Duration? animationDuration = const Duration(seconds: 1),
  3. Curve? curve = Curves.easeOut,
})

Implementation

Done(
  this.done, {
  this.animationDuration = const Duration(seconds: 1),
  this.curve = Curves.easeOut,
}) : super(
        transitionDuration: animationDuration!,
        transitionsBuilder: (context, animation, secondAnimation, child) {
          animation = CurvedAnimation(
            parent: animation,
            curve: curve!,
          );
          return ScaleTransition(
            scale: animation,
            alignment: Alignment.center,
            child: child,
          );
        },
        pageBuilder: (context, animation, secondaryAnimation) {
          return done;
        },
      );