Skip to content

Added extension, animateTo, clickIndex#82

Open
YDA93 wants to merge 7 commits into
sooxt98:masterfrom
YDA93:master
Open

Added extension, animateTo, clickIndex#82
YDA93 wants to merge 7 commits into
sooxt98:masterfrom
YDA93:master

Conversation

@YDA93

@YDA93 YDA93 commented Oct 19, 2022

Copy link
Copy Markdown

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