How to change speed of a hero animation in flutter?

Posted by Rohit Kumar | Updated on

Want to change speed of a hero animation in flutter? If you already have your own transition or want to create one you can use the PageRouteBuilder to easily build own. Simply adjust the transitionDuration.

Here’s a small standalone example, using the PageRouteBuilder:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers