How to replace widgets like fragments in flutter?

Posted by Jennifer | Updated on

If you want to replace widgets like fragments in flutter? You could simply use a MaterialApp widget with the CupertinoPageTransitionsBuilder as pageTransitionTheme like:

Then in fragment 1 you simply use the following to navigate to the other fragment with a slide animation


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