Skip to content
pubscout

flutter_snake_navigationbar

0.6.1, released 5 years ago by herodot.com

Flutter bottom navigation bar widget with snake animation on item change.

WASM-ready
$ flutter pub add flutter_snake_navigationbar
Source repository

What it does

Provides a bottom navigation bar widget featuring a snake animation effect when switching between different items. It supports custom shapes, gradients, colors, and behaviors like floating or pinned modes.

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

Use it when

  • You want a bottom navigation bar with a smooth snake animation effect.
  • You need customizable shapes, colors, or gradients for selected and unselected navigation items.

Skip it when

  • You require the standard platform-default BottomNavigationBar without extra animations.
  • You are using SnakeShape.circle and strictly require selected labels to be shown.

Strengths

  • Smooth snake animation on item change
  • Supports both color and gradient configurations
  • Customizable shapes, elevation, and padding

Weaknesses

  • SnakeShape.circle forces selected labels to be hidden
  • Limited to bottom navigation bar use cases

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Scaffold(
  bottomNavigationBar: SnakeNavigationBar.color(
    currentIndex: _selectedItemPosition,
    onTap: (index) => setState(() => _selectedItemPosition = index),
    items: [
      BottomNavigationBarItem(icon: Icon(Icons.notifications), label: 'tickets'),
      BottomNavigationBarItem(icon: Icon(Icons.home), label: 'home'),
    ],
  ),
)

Alternatives

Packages that do the same job and could replace flutter_snake_navigationbar.