hacktons / convex_bottom_bar

A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
https://bar.hacktons.cn
Apache License 2.0
801 stars 150 forks source link

Switching to a tab with a difference of more than 1 using TabController #171

Closed nezhinskii closed 2 years ago

nezhinskii commented 2 years ago

I am using my TabController inside ConvexAppBar and I need to programmatically change the current tab. I found that when switching to more than 1 tab, changes in ConvexAppBar do not occur. As far as I understand, this is due to the following code in the _warpToCurrentIndex() method. But I still don't know how to implement a programmatic transition further than to the next tab. image

AbdullahAli1993 commented 2 years ago

Check this link: https://bar.hacktons.cn/faq/issue-change-active-tab-index.html#work-with-pageview-tabbarview