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

Added extension, animateTo, clickIndex #82

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

YDA93
Copy link

@YDA93 YDA93 commented Oct 19, 2022

Similar to https://pub.dev/packages/convex_bottom_bar

I have made 4 useful updates:

  1. animteTo which will only change the active index without any firing tab events.
  2. clickTo which will fire click event to wanted index similar to a manual click.
  3. Made the state public so we can make keys to control the nav bar.
  4. Added extensions so now you can do the following:
context.gNav?.animateTo(tabsRouter.activeIndex);
context.gNav?.clickIndex(tabsRouter.activeIndex);

or through using keys:

appBarKey.currentState?.animateTo(tabsRouter.activeIndex),
appBarKey.currentState?.clickIndex(tabsRouter.activeIndex),

@YDA93 YDA93 force-pushed the master branch 6 times, most recently from 1a88056 to b60827c Compare May 9, 2023 15:11
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

Successfully merging this pull request may close these issues.

1 participant