Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon with Notification badge not implemented. #11

Closed
rvndsngwn opened this issue Mar 20, 2022 · 3 comments
Closed

Icon with Notification badge not implemented. #11

rvndsngwn opened this issue Mar 20, 2022 · 3 comments

Comments

@rvndsngwn
Copy link

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

@rvndsngwn
Copy link
Author

I update my code and this issue gone. 😃

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

@jb3rndt
Copy link
Owner

jb3rndt commented Mar 22, 2022

Nice 👍😄

@h-unterp
Copy link

This would be a useful example for the docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants