Flattered with Flutter (Navigation)

Aseem Wangoo
2 min readMar 24, 2018

Navigation in Flutter

All in one Flutter Resource: https://flatteredwithflutter.com/navigating-between-screens-in-flutter/

SideNote: Want to save your navigation history, see below!!

In this post, we will see how to navigate between the different screens of applications. Here we go…….

Define the screens for navigation.

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,

Description

Articles related to Flutter:

After adding the above line, we can see the back button gone in appBar.

Final Output

Find the program (Navigation.dart) at the repo : https://github.com/AseemWangoo/flutter_programs

--

--