CenterBounceIn constructor

CenterBounceIn({
  1. required Widget widget,
})

Implementation

CenterBounceIn({required this.widget}) : super (
    transitionDuration: const Duration(seconds: 1),
    transitionsBuilder: (BuildContext context, Animation<double> animation, Animation<double> secAnimation, Widget child) {
      animation = CurvedAnimation(parent: animation, curve: Curves.elasticInOut);
      return ScaleTransition(alignment: Alignment.center, scale: animation, child: child);
    },
    pageBuilder: ((BuildContext context, Animation<double> animation, Animation<double> secAnimation){
      return widget;
    })
);