SwipeTransition constructor

const SwipeTransition({
  1. Key? key,
  2. Axis axis = Axis.vertical,
  3. double axisAlignment = -1.0,
  4. required Widget child,
  5. Clip clip = Clip.antiAlias,
  6. Curve curve = Curves.ease,
  7. Duration duration = const Duration(milliseconds: 200),
  8. Curve? reverseCurve,
  9. Duration? reverseDuration,
  10. required bool visible,
})

It is a type of transition very similar to SizeTransition. The SwipeTransition fixes the problem that arises in the SlideTransition since always hides the elements on the screen and not on the parent widget, that is, if you performed the effect inside a 100x100 container the child widget of the SwipeTransition would pop out of the container and be overexposed on top of its other widgets.

Implementation

const SwipeTransition({
  Key? key,
  this.axis = Axis.vertical,
  this.axisAlignment = -1.0,
  required this.child,
  this.clip = Clip.antiAlias,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 200),
  this.reverseCurve,
  this.reverseDuration,
  required this.visible,
}) : super(key: key);