Basic Routing with Flutter Navigator 2.0

in #flutter2 years ago

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.

Coin Marketplace

STEEM 0.16
TRX 0.13
JST 0.027
BTC 60841.72
ETH 2603.92
USDT 1.00
SBD 2.56