buildBottomNavigationBar method

Widget buildBottomNavigationBar(
  1. BuildContext context,
  2. int index
)

Implementation

Widget buildBottomNavigationBar(BuildContext context, int index) => ButtonBar(
    selectedIndex: index,
    buttons: tabs
        .mapIndexed((tab, barIndex) => IconTab(
              icon: tab.icon,
              selectedIcon: tab.selectedIcon ?? tab.icon,
              label: tab.label,
              onPressed: index == barIndex
                  ? null
                  : () => onIndexChanged?.call(barIndex),
            ))
        .toList());