Rule of Navigation never navigated a ship…..

Let’s dive into the navigation concept of Flutter…..This post illustrates how to navigate between different screens in Flutter….




In the above code, you mention the screens for navigation. (in my case : SecondScreen)

Navigation line.

In the above code, the navigation happens to the _route (a variable).

String _route = “/SecondScreen”;

and the /SecondScreen is mentioned above in the routes.

You will notice a back button appearing in the appBar.

Well don’t worry, for removing that only add 1 line of code (in the appBar):

automaticallyImplyLeading: false,

Nav gif

Video demonstration :

Complete source code :


Leave a Reply

Your email address will not be published. Required fields are marked *