buildBottomNavigationBar method

  1. @override
BottomNavigationBar? buildBottomNavigationBar(
  1. BuildContext context
)
override

Implementation

@override
BottomNavigationBar? buildBottomNavigationBar(BuildContext context) {
  return BottomNavigationBar(
    items: bottomItems.mapList((e) => BottomNavigationBarItem(icon: e.pageIconWidget(), label: e.pageLabel)),
    currentIndex: _selectedIndex,
    type: BottomNavigationBarType.fixed,
    onTap: (i) {
      _selectedIndex = i;
      updateState();
    },
  );
}