Skip to content
pubscout

curved_nav_bar

0.1.0, released 7 weeks ago by boffincoders.com

Curved bottom navigation bar with a customizable center action button.

WASM-ready
$ flutter pub add curved_nav_bar
Source repository

What it does

Provides a curved bottom navigation bar widget that supports body items per tab, a center action button for custom actions or views, and styling for labels and icons.

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

Use it when

  • You need a bottom navigation bar featuring a central action button or notch.
  • You want built-in handling for switching between body views based on tab selection.

Skip it when

  • You require standard Material Design bottom navigation without custom curves or central action buttons.
  • You are implementing top navigation or side drawers instead of a bottom bar.

Strengths

  • Includes support for a center action button with its own view and tap handling.
  • Allows custom styling for individual tab labels as well as global text styles.
  • Supports programmatically changing the active page via a GlobalKey.

Weaknesses

  • Limited to bottom navigation bar use cases.
  • Requires even number of destination items if an action button is set.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
CurvedNavBar(
  appBar: AppBar(title: const Text('Curved nav bar')),
  initialIndex: 0,
  appBarItems: const [
    FABBottomAppBarItem(
      activeIcon: Icon(Icons.home),
      text: 'Home',
    ),
  ],
  bodyItems: const [
    ColoredBox(color: Colors.blue),
  ],
)

Alternatives

Packages that do the same job and could replace curved_nav_bar.