motion_tab_bar_v2
3.0.0, released 3 months ago by an unverified publisher
An animated bottom navigation bar with a sliding indicator and custom badges
What it does
Provides a customizable bottom navigation bar where the active tab icon animates into place with a sliding motion effect. It supports custom icons or widgets, notification badges, and programmatic tab control via a custom controller.
AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want an animated bottom navigation bar with a floating active tab indicator
- You need to display notification badges or indicators on specific tabs
- You need programmatic control to change the active tab index
Skip it when
- You need standard Material NavigationBar or BottomNavigationBar components
- You require built-in swipe navigation handling within the TabBarView (swipe navigation handling is not supported)
Strengths
- Smooth motion animations for the active tab indicator
- Supports both standard IconData and custom icon widgets
- Built-in badge support and MotionBadgeWidget
Weaknesses
- Swipe navigation handling is not supported by default
- Relies on a custom controller setup for programmatic changes
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
bottomNavigationBar: MotionTabBar(
initialSelectedTab: "Home",
labels: const ["Dashboard", "Home", "Profile", "Settings"],
icons: const [
Icons.dashboard,
Icons.home,
Icons.people_alt,
Icons.settings,
],
onTabItemSelected: (int value) {
setState(() {
// handle tab change
});
},
)Alternatives
Packages that do the same job and could replace motion_tab_bar_v2.
- bart
A bottom navigation bar and tabulation system using Navigator for switching tabs.
65Compare - animated_notch_bottom_bar
An animated notch bottom navigation bar with customizable items and blur effects.
75Compare - persistent_bottom_nav_bar_v2
Customizable persistent bottom navigation bar with 17 prebuilt styles and separate tab stacks.
84Compare - animated_bottom_navigation_bar
An animated bottom navigation bar widget supporting floating action buttons and notches.
79Compare