FTooltipController constructor
FTooltipController({
- required TickerProvider vsync,
- Duration animationDuration = const Duration(milliseconds: 100),
Creates a FTooltipController with the given vsync
and animation animationDuration
.
Implementation
FTooltipController({required TickerProvider vsync, Duration animationDuration = const Duration(milliseconds: 100)}) {
_animation = AnimationController(vsync: vsync, duration: animationDuration);
_curveFade = CurvedAnimation(parent: _animation, curve: Curves.easeOutCubic, reverseCurve: Curves.easeOutCubic);
_curveScale = CurvedAnimation(parent: _animation, curve: Curves.easeOutCubic, reverseCurve: Curves.easeOutCubic);
_fade = _fadeTween.animate(_curveFade);
_scale = _scaleTween.animate(_curveScale);
}