What is Navigator 2.0 in Flutter?

 Navigator 2.0 (Router API) provides declarative navigation — useful for web and large apps.

Instead of pushing/popping pages imperatively, you manage the full stack of pages as a list.

Example:

MaterialApp.router( routerDelegate: MyRouterDelegate(), routeInformationParser: MyRouteParser(), );

Comments

Popular posts from this blog

1. What is Flutter?

What is FutureBuilder and StreamBuilder?