Skip to content
pubscout

nuvigator

2.0.2, released 10 days ago by nubank.dev

Routing abstraction over Flutter navigator with nested navigation and deep links

WASM-readyRock solid
$ flutter pub add nuvigator
Source repository

What it does

Nuvigator provides a routing abstraction over Flutter's native navigators to model complex navigation flows using a declarative approach. It helps with large modular apps, nested navigation, deep links, and managing route relationships.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need nested navigators with self-contained flows and proper back button handling
  • You are building large or modular apps requiring a unified API to register routes
  • You want deep linking support with path and query parameters

Skip it when

  • You prefer standard Flutter Navigator 2.0 or go_router without additional routing abstractions
  • You want a zero-configuration simple navigator for tiny apps

Strengths

  • Handles nested navigation, Hero animations, and Android back button for children navigators
  • Declarative and concise API for defining routers and routes
  • Supports deep links with path and query parameters out of the box

Weaknesses

  • Adds a custom abstraction layer over Flutter's navigation system
  • Requires learning its own router and route definition paradigms

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Nuvigator App',
      builder: Nuvigator.routes(
        initialRoute: 'home',
        screenType: materialScreenType,
        routes: [
          NuRouteBuilder(path: 'home', builder: (_, __, ___) => HomeScreen()),
          NuRouteBuilder(path: 'second', builder: (_, __, ___) => SecondScreen()),
        ],
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace nuvigator.

  • go_router

    It is the official declarative routing package backed by the Flutter team with built-in deep linking.

  • auto_route

    You prefer code generation for strongly typed arguments and automatic route generation.

Works with

Packages commonly used together with nuvigator: ones it builds on, ones built on it, and its own family.