CustomTabBarController class
Methods
-
addListener(VoidCallback? callback)
→ void
-
-
animateToIndex(int targetIndex)
→ void
-
-
calculateScrollProgressByPageView(int currentIndex, PageController pageController)
→ ScrollProgressInfo?
-
-
calculateScrollTabbarItemInfo(double? page, List<Size> sizeList)
→ ScrollItemInfo
-
-
endJump()
→ void
-
-
forEachListenerCallback()
→ void
-
-
getTabBarSize(List<Size>? sizeList)
→ Size
-
-
getTabIndicatorCenterX(double width)
→ double
-
-
getTargetItemScrollEndOffset(List<Size>? sizeList, int index)
→ Offset
-
-
getTargetItemScrollStartOffset(List<Size>? sizeList, int index)
→ Offset
-
-
isChanging()
→ bool
-
-
isItemVisible(ScrollController scrollController, dynamic index, List<Size>? sizeList, Size tabBarSize)
→ bool
-
判断item是否显示在可见区域
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAt(int index)
→ void
-
-
scrollByPageView(Size tabCenterSize, List<Size>? sizeList, ScrollController? scrollController, PageController pageController)
→ void
-
根据pageController来设置偏移量
-
scrollTargetToCenter(Size tabCenterSize, int targetIndex, List<Size>? sizeList, ScrollController? scrollController, {Duration? duration})
→ void
-
滚动目标索引的项到中间位置
-
setAnimateToIndexCallback(ValueChanged<int> callback)
→ void
-
-
setCurrentIndex(int index)
→ void
-
-
setOrientation(Axis orientation)
→ void
-
-
startJump()
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited