bottom_bar
2.0.5, released a year ago by hanstan.link
An optimized bottom navigation bar widget with customizable animations and styling.
What it does
Bottom bar helps create an optimized bottom navigation bar with beautiful animations and items. It provides a `BottomBar` widget and `BottomBarItem` objects to manage selection states and custom active/inactive colors, icons, and titles.
AI-written summary of version 2.0.5, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a custom animated bottom navigation bar in your application.
- You want individual control over item colors, active backgrounds, and layout alignment.
Skip it when
- You require the standard platform-specific native bottom navigation bars without custom animations.
- You are looking for a complete navigation routing framework.
Strengths
- Customizable animations with configurable curves and durations.
- Supports custom active/inactive colors, icons, and background opacity per item.
Weaknesses
- Requires manual state tracking (e.g., using `setState` or a page controller) to synchronize selection index.
- Breaking changes in past major versions removed built-in properties like `darkActiveColor`.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
BottomBar(
selectedIndex: _currentPage,
onTap: (int index) {
_pageController.jumpToPage(index);
setState(() => _currentPage = index);
},
items: <BottomBarItem>[
BottomBarItem(
icon: Icon(Icons.home),
title: Text('Home'),
activeColor: Colors.blue,
),
],
)Alternatives
Packages that do the same job and could replace bottom_bar.
- flutter_toggle_tab
A customisable toggle tab widget for Flutter with animated selection and adaptive widths.
80Compare - dot_curved_bottom_nav
An animated bottom navigation bar with a top edge that curves around a dot.
69Compare - awesome_bottom_bar
A customizable bottom navigation bar with various animated styles.
50Compare - responsive_navigation_bar
A responsive bottom navigation bar with automatic scaling for screen sizes.
76Compare