Skip to content
pubscout

navbar_router

0.7.7, released a year ago by maheshjamdade.com

Advanced bottom navigation bar with minimal code, nested routing, and history management.

WASM-ready
$ flutter pub add navbar_router
Source repository

What it does

NavbarRouter simplifies creating advanced bottom navigation bars in Flutter by handling nested navigation, tab history, snackbars, and multiple navbar styles. It allows you to specify navbar items and their respective routes, managing the navigation stack automatically.

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

Use it when

  • You need a bottom navigation bar with nested navigation per tab.
  • You want to remember navigation history and persist state across bottom navigation tabs.
  • You need to programmatically control the bottom navigation state from anywhere in the widget tree.

Skip it when

  • You are already using a full application router like go_router and want it to manage the entire navigation schema natively without this package.
  • Your app does not use a bottom navigation bar.

Strengths

  • Supports multiple navigation bar types (standard, notched, material3, floating).
  • Handles Android back button history and exit interception natively.
  • Built-in support for animated badges and floating snackbars on top of the navbar.

Weaknesses

  • Limited to bottom navigation bar use cases rather than general application routing.
  • Requires wrapping within a builder for snackbars to work properly.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

No special native permissions or build_runner configuration required.

NavbarRouter(
  errorBuilder: (context) {
    return const Center(child: Text('Error 404'));
  },
  destinations: [
    DestinationRouter(
      navbarItem: NavbarItem(Icons.home, 'Home'),
      destinations: [
        Destination(route: '/', widget: HomePage()),
      ],
      initialRoute: '/',
    ),
  ],
)

Alternatives

Packages that do the same job and could replace navbar_router.

  • go_router

    If you prefer the official declarative routing solution that handles deep linking, shell routes, and complex navigation graphs.

  • auto_route

    If you want generated strongly-typed routing with built-in support for nested bottom navigation tabs.

Works with

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