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:
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
Post a Comment