getBottomNavigationBar method

Widget? getBottomNavigationBar()

Implementation

Widget? getBottomNavigationBar() {
  return baseScreen.bottomNavBarItems != null
      ? Consumer<PV>(
          builder: (context, value, child) => NavigationBar(
                onDestinationSelected: (int index) =>
                    value.updateNavigationIndex(index),
                selectedIndex: value.selectedNavigationIndex,
                destinations: baseScreen.bottomNavBarItems!,
              ))
      : baseScreen.bottomAppBar;
}