Flattered with Flutter (Navigation)
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…….
In the above code, you mention the screens for navigation. (in my case: SecondScreen)
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,
Articles related to Flutter:
After adding the above line, we can see the back button gone in appBar.
Find the program (Navigation.dart) at the repo : https://github.com/AseemWangoo/flutter_programs