circularButton method

Widget circularButton()

Implementation

Widget circularButton() {
  return Container(
      height: 60,
      width: 60,
      alignment: Alignment.center,
      decoration: BoxDecoration(
        color: widget.decoration.backgroundColor,
        shape: BoxShape.circle,
        boxShadow: [
          BoxShadow(
            color: Colors.black.withOpacity(0.2),
            spreadRadius: 2,
            blurRadius: 5,
            offset: const Offset(0, 3), // changes position of shadow
          ),
        ],
      ),
      child: buildBadge(
          NavbarNotifier.currentIndex,
          widget.menuItems[NavbarNotifier.currentIndex].selectedIcon ??
              Icon(
                widget.menuItems[NavbarNotifier.currentIndex].iconData,
                color: widget.decoration.selectedIconColor,
                size: (widget.decoration.selectedIconTheme?.size ?? 24.0) *
                    scaleAnimation.value,
              )));
}