When using showGeneralDialog - is it possible to use a different transition and duration for displaying a dialog than for hiding the dialog again?
E.g. a Curves.elasticOut for showing and a shorter Curve.linear transition for hiding?
When using showGeneralDialog - is it possible to use a different transition and duration for displaying a dialog than for hiding the dialog again?
E.g. a Curves.elasticOut for showing and a shorter Curve.linear transition for hiding?
Copyright © 2021 Jogjafile Inc.
The showGeneralDialog method has the following signature:
Per the documentation, the RouteTransitionBuilder object :
The RouteTransitionBuilder has the following signature:
The two Animation objects are used for:
If you want to have a different animation and duration, you can create your own RouteTransitionBuilder with its own animations and attach an animationController to it with a specific duration.