ExtendedNavBar method

Widget ExtendedNavBar()

Implementation

Widget ExtendedNavBar() {
  return SizedBox(
    height: height! + 30,
    child: Stack(
      clipBehavior: Clip.none,
      children: [
        Positioned(
          bottom: 0,
          left: 0,
          right: 0,
          child: BottomAppBar(
            height: height,
            color: backgroundColor ?? Colors.white,
            shape: const CircularNotchedRectangle(),
            notchMargin: 8,
            child: Row(
              mainAxisAlignment: MainAxisAlignment.spaceAround,
              children: [
                Expanded(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: [
                      _buildNavItem(items[0], 0),
                      _buildNavItem(items[1], 1),
                    ],
                  ),
                ),
                const SizedBox(width: 78),
                Expanded(
                  child: Row(
                    mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                    children: [
                      _buildNavItem(items[2], 2),
                      _buildNavItem(items[3], 3),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ),
        if (fabActions != null)
          Positioned(
            top: 0,
            left: 0,
            right: 0,
            child: Center(
              child: ExpandableFab(
                distance: 80,
                children: fabActions!
                    .map((action) => ActionButton(
                          onPressed: action.onPressed,
                          icon: action.icon.build(
                            color: action.iconColor,
                            size: action.iconSize,
                          ),
                        ))
                    .toList(),
              ),
            ),
          ),
      ],
    ),
  );
}