Skip to content

Bottom Nav Bar

Bottom navigation for primary app sections.

Installation

bash
flutter_studio add bottomnavbar
bash
flutter pub add flutter_studio

Usage

dart
CustomBottomNavBar(
  currentIndex: selectedIndex,
  items: [
    BottomNavItem(icon: Icons.home, label: 'Home'),
    BottomNavItem(icon: Icons.search, label: 'Search'),
    BottomNavItem(icon: Icons.person, label: 'Profile'),
  ],
  onTap: (index) {
    setState(() {
      selectedIndex = index;
    });
  },
)

API Reference

Properties

PropertyTypeDefaultDescription
currentIndexintrequiredSelected tab index
itemsListrequiredNavigation items