BottomNavBar constructor

const BottomNavBar({
  1. Key? key,
  2. required int currentIndex,
  3. required List<TabItem> tabs,
  4. BottomNavigationBarThemeData? data,
  5. ValueChanged<int>? onTap,
})

Implementation

const BottomNavBar(
    {Key? key,
    required this.currentIndex,
    required this.tabs,
    BottomNavigationBarThemeData? data,
    this.onTap})
    : assert(currentIndex < tabs.length && currentIndex >= 0),
      themeData = data ??
          const BottomNavigationBarThemeData(
              showSelectedLabels: true,
              showUnselectedLabels: true,
              selectedLabelStyle: TextStyle(fontSize: 12),
              unselectedLabelStyle: TextStyle(fontSize: 12),
              type: BottomNavigationBarType.fixed,
              elevation: 5),
      super(key: key);