setScrollTabItemByPageView method

void setScrollTabItemByPageView(
  1. List<Size>? sizeList,
  2. Size tabBarViewCenterSize,
  3. PageController pageController,
  4. ScrollController? scrollController,
)

Implementation

void setScrollTabItemByPageView(
  List<Size>? sizeList,
  Size tabBarViewCenterSize,
  PageController pageController,
  ScrollController? scrollController,
) {
  if (scrollController == null) {
    return;
  }

  if (pageController.page != null) {
    setScrollTabItemToCenter(
      pageController.page!.round(),
      sizeList,
      tabBarViewCenterSize,
      scrollController,
      null,
    );
  }
}