jb3rndt/PersistentBottomNavBarV2

Icon with Notification badge not implemented.

rvndsngwn opened this issue ยท 3 comments

Hey, @jb3rndt I'm trying to add a notification badge on Persistent Bottom Nav Bar V2 but it is not compatible.

My code

  PersistentBottomNavBarItem(
    icon: Stack(
      alignment: Alignment.center,
      children: const [
        Icon(
          Icons.chat_rounded,
        ),
        UnreadIndicator(),
      ],
    ),
    title: ("Chat"),
  ),

Preview
IMG_1688

I want like this
rVO5g

I update my code and this issue gone. ๐Ÿ˜ƒ

PersistentBottomNavBarItem(
        icon: Badge(
          animationType: BadgeAnimationType.scale,
          badgeContent: UnreadIndicator(),
          child: const Icon(
            Icons.chat_rounded,
          ),
        ),
        title: ("Chat"),
      ),

Nice ๐Ÿ‘๐Ÿ˜„

This would be a useful example for the docs