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

Animation on the button. #29

Closed
fclauss72 opened this issue Nov 14, 2021 · 2 comments
Closed

Animation on the button. #29

fclauss72 opened this issue Nov 14, 2021 · 2 comments

Comments

@fclauss72
Copy link

Every time I press a different menu button there is animation on the button itself.
If, however, I repeat the same button, the animation does not work.
Is there a way to run the animation even by pressing the same button again?
Thx.

@vizhan-lanars
Copy link
Collaborator

@fclauss72
This is intended behaviour.
You could find that in the animated_bottom_navigation_bar.dart :

  @override
  void didUpdateWidget(AnimatedBottomNavigationBar oldWidget) {
    super.didUpdateWidget(oldWidget);
    if (oldWidget.activeIndex != widget.activeIndex) {
      _startBubbleAnimation();
    }
  }

You could fork to achieve what you want

@fclauss72
Copy link
Author

Ok, thanks.

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

2 participants