I want TabBar to scroll when user tap on previous/ next arrow. Not to change tab, just scroll. I check TabController properties, but didn't found anything for this. Is there any material widget available for same? Please share how can I achieve this feature?
Scroll tabbar programmatically + Flutter
269 Views Asked by Khyati Modi At
2
There are 2 best solutions below
1

That is simply not possible. but there is a alternative solution
use this package for the tab bar https://pub.dev/packages/scrollable_positioned_list
and use pageview for tabbar view.
assign the controller for pageview. and another controller for the scrolable list.
if clicking the arrow button change the scroll position of the second scrolable list
We can achieve this using
scrollController
. Use a ScrollController to control the horizontal scrolling of the TabBar. The scrollTabBar function is used to scroll the TabBar when the previous and next arrow buttons are pressed. This approach allows you to scroll the TabBar without changing the current tab index.