FPopoverController constructor
FPopoverController({
- required TickerProvider vsync,
- FPopoverMotion motion = const FPopoverMotion(),
Creates a FPopoverController with the given vsync
and motion
.
Implementation
FPopoverController({required TickerProvider vsync, FPopoverMotion motion = const FPopoverMotion()}) {
_animation = AnimationController(
vsync: vsync,
duration: motion.entranceDuration,
reverseDuration: motion.exitDuration,
);
_curveFade = CurvedAnimation(parent: _animation, curve: motion.fadeInCurve, reverseCurve: motion.fadeOutCurve);
_curveScale = CurvedAnimation(parent: _animation, curve: motion.expandCurve, reverseCurve: motion.collapseCurve);
_scale = motion.scaleTween.animate(_curveScale);
_fade = motion.fadeTween.animate(_curveFade);
}