How to add hero animation with an AlertDialog in flutter

Posted by Editorial Staff | Updated on

Want to add hero animation with an AlertDialog in flutter? The Hero transitions are only enabled for transitions between two instances of PageRoute. So if you want to make use of the existing Hero system, you should probably use a PageRoute.

Instead of pushing an AlertDialog, you could try a full-screen dialog:


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