bottomNavigationWidget method

dynamic bottomNavigationWidget(
  1. dynamic context
)

Implementation

Widget bottomNavigationWidget(BuildContext context) {
  final keyboardVisibility = ref.watch(keyboardVisibleProvider);
  if (keyboardVisibility.valueOrNull != false) {
    return const SizedBox.shrink();
  }
  return Stack(
    children: [
      SizedBox(
        height: 50,
        child: Row(
          children: bottomBarItems
              .map(
                (bottomBarNav) => Expanded(
                  child: Center(
                    child: SizedBox(
                      key: bottomBarNav.tutorialGlobalKey,
                      height: 40,
                      width: 40,
                    ),
                  ),
                ),
              )
              .toList(),
        ),
      ),
      BottomNavigationBar(
        showSelectedLabels: false,
        showUnselectedLabels: false,
        currentIndex: widget.navigationShell.currentIndex,
        onTap: (index) {
          widget.navigationShell.goBranch(
            index,
            initialLocation: index == widget.navigationShell.currentIndex,
          );
        },
        items: bottomBarItems,
        type: BottomNavigationBarType.fixed,
      ),
    ],
  );
}