transitionBuilder property
Called to display animations when suggestionsCallback returns suggestions
It is provided with the suggestions box instance and the animation controller, and expected to return some animation that uses the controller to display the suggestion box.
For example:
transitionBuilder: (context, suggestionsBox, animationController) {
return FadeTransition(
child: suggestionsBox,
opacity: CurvedAnimation(
parent: animationController,
curve: Curves.fastOutSlowIn
),
);
}
This argument is best used with animationDuration and animationStart to fully control the animation.
To fully remove the animation, just return suggestionsBox
If not specified, a SizeTransition is shown.
Implementation
final AnimationTransitionBuilder? transitionBuilder;