AnimatedBetween constructor
const
AnimatedBetween({
- Key? key,
- required Widget? child,
- Duration fadeDuration = defaultFadeDuration,
- double sizeDurationFactor = defaultSizeDurationFactor,
- Curve fadeCurve = defaultFadeCurve,
- Curve sizeCurve = defaultSizeCurve,
- Alignment alignment = Alignment.center,
- Clip clipBehavior = Clip.none,
- AnimatedBetweenMode modeShorterChild = AnimatedBetweenMode.resize,
- AnimatedBetweenMode modeLargerChild = AnimatedBetweenMode.fit,
- bool printDebug = false,
Creates an AnimatedBetween.
See the class documentation for how fadeDuration,
sizeDurationFactor, fadeCurve and sizeCurve combine to
produce the grow/shrink transition.
Implementation
const AnimatedBetween({
super.key,
required this.child,
this.fadeDuration = defaultFadeDuration,
this.sizeDurationFactor = defaultSizeDurationFactor,
this.fadeCurve = defaultFadeCurve,
this.sizeCurve = defaultSizeCurve,
this.alignment = Alignment.center,
this.clipBehavior = Clip.none,
this.modeShorterChild = AnimatedBetweenMode.resize,
this.modeLargerChild = AnimatedBetweenMode.fit,
this.printDebug = false,
}) : assert(sizeDurationFactor >= 1.0, 'sizeDurationFactor must be >= 1.0');