flutter_snake_navigationbar
0.6.1, released 5 years ago by herodot.com
Flutter bottom navigation bar widget with snake animation on item change.
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.
- flutter_floating_bottom_bar
An adaptable floating bottom bar that reacts to scrolling and stays accessible.
87Compare - animated_bottom_navigation_bar
An animated bottom navigation bar widget supporting floating action buttons and notches.
79Compare - curved_navigation_bar_pro
A customizable curved bottom navigation bar with an animated notch and elastic FAB bubble.
77Compare - persistent_bottom_nav_bar_v2
Customizable persistent bottom navigation bar with 17 prebuilt styles and separate tab stacks.
84Compare