AnimatedSwitcherPlus.translationRight constructor
AnimatedSwitcherPlus.translationRight({})
Animated Switcher with translation transition toward right
Implementation
AnimatedSwitcherPlus.translationRight({
required Duration duration,
double offset = 1.0,
Duration? reverseDuration,
Curve? switchInCurve,
Curve? switchOutCurve,
AnimatedSwitcherLayoutBuilder? layoutBuilder,
Widget? child,
bool enableFade = true,
Key? key,
}) : super(
duration: duration,
reverseDuration: reverseDuration,
switchInCurve: switchInCurve ?? _translationCurveIn,
switchOutCurve: switchOutCurve ?? _translationCurveOut,
layoutBuilder: layoutBuilder ?? AnimatedSwitcher.defaultLayoutBuilder,
transitionBuilder:
translationTransitionBuilder(Offset(-offset, 0), enableFade),
child: child,
key: key,
);