buildBottomNavigationBar method
Implementation
Widget buildBottomNavigationBar(BuildContext context, int index) => ButtonBar(
selectedIndex: index,
buttons: tabs
.whereType<NavTab>()
.mapIndexed((tab, barIndex) => IconTab(
icon: tab.icon,
selectedIcon: tab.selectedIcon ?? tab.icon,
label: tab.label,
onPressed:
index == barIndex ? null : () => _onChanged(barIndex),
))
.toList());