AnimatedSwitcherPlus.translationBottom constructor
AnimatedSwitcherPlus.translationBottom({})
Animated Switcher with translation transition toward bottom
Implementation
AnimatedSwitcherPlus.translationBottom({
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(0, -offset), enableFade),
child: child,
key: key,
);