Skip to content
pubscout

persistent_bottom_nav_bar_v2

6.5.0, released 6 weeks ago by an unverified publisher

Customizable persistent bottom navigation bar with 17 prebuilt styles and separate tab stacks.

WASM-ready
$ flutter pub add persistent_bottom_nav_bar_v2
Source repository

What it does

Provides a persistent bottom navigation bar widget that maintains separate navigation stacks across tabs when switching. It includes 17 prebuilt bar styles, supports custom styling, and integrates with go_router and Android back button handling. It also enables scroll-to-top on double tap, animated icons, and hiding the bar during scroll.

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

Use it when

  • You need a bottom navigation bar that preserves the navigation history of each tab independently.
  • You want prebuilt, styled navigation bar animations without designing custom bar components from scratch.
  • You need features like hiding navigation bars on scroll, animated tab icons, or scroll-to-top behavior.

Skip it when

  • You only require Flutter's standard BottomNavigationBar or NavigationBar without nested navigators.
  • Your routing architecture already manages stateful nested navigation exclusively via standard go_router StatefulShellRoute.

Strengths

  • Offers 17 prebuilt, animated navigation bar styles ready out-of-the-box.
  • Maintains individual navigation stacks per tab without discarding state.
  • Supports integration with go_router for declarative routing.

Weaknesses

  • Replaces standard Scaffold page structures and requires adapting page layouts around PersistentTabView.
  • Tight dependency on go_router version bumps can lead to dependency constraints across major Flutter versions.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Works as a top-level container similar to Scaffold; avoid nesting inside Scaffold.body.

PersistentTabView(
  tabs: [
    PersistentTabConfig(
      screen: YourFirstScreen(),
      item: ItemConfig(
        icon: const Icon(Icons.home),
        title: 'Home',
      ),
    ),
    PersistentTabConfig(
      screen: YourSecondScreen(),
      item: ItemConfig(
        icon: const Icon(Icons.settings),
        title: 'Settings',
      ),
    ),
  ],
  navBarBuilder: (navBarConfig) => Style1BottomNavBar(
    navBarConfig: navBarConfig,
  ),
)

Alternatives

Packages that do the same job and could replace persistent_bottom_nav_bar_v2.

Works with

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