Done constructor
Done(})
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;
},
);