SwipeTransition constructor
const
SwipeTransition({})
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);