The Flutter team introduced the Navigator 2.0 to overcome the complexity of Navigator 1.0, it was quite simple add and remove the pages which is complex to handle deep linking or URL parsing for Flutter Web hence Navigator 2.0 is here to rescue.
So, In short, Navigator 2.0 is the declarative API developed by Flutter.
Limitation of Navigator 1.0
Navigator 1.0 only provided a stack which can POP and PUSH pages that was pretty convenient and simple. It faced the problems when users needed to make complex applications by doing deep linking, O.S events handling, and URI parsing.
Then Navigator 2.0 comes into the picture, it gives more control over the navigation stack. It not only can do POP and PUSH only, but can provide the list of the pages and URI parsing by using routeInformationParser and provider.
Tutorial Goal
In this tutorial, we want to develop the simple demo app consisting of two screens:
- Screen 1 for Anime Characters
- Screen 2 for Character Details
If you want to know more about the technical details. Read more about the Basic Routing with Flutter Navigator 2.0 now.