Flutter SizeTransition and PageRouteBuilder not working

Posted by Andre Scott | Updated on

Flutter SizeTransition and PageRouteBuilder not working. The root widget of your page is forced to fill the screen, for a simple reason: Flutter don’t know how it should align a route that doesn’t actually fill the screen.

So, to simplify things, it justs force a fill.

To solve that simply wrap your root widget into an Align:


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