VTopTabBar constructor

const VTopTabBar({
  1. Key? key,
  2. required List<VTopTabBarModel> tabModelArr,
  3. required List<String> tabTitle,
  4. Color? bgColor,
  5. Color? labelColor = Colors.blue,
  6. Color? unselectedLabelColor = Colors.black,
  7. double tabHeight = 60.0,
  8. TextStyle? labelStyle,
  9. TextStyle? unselectedLabelStyle,
  10. Decoration? indicator,
  11. bool showCenterLine = false,
  12. Function? switchPageCallBack,
  13. double indicatorBottom = 5,
  14. int defaultIndex = 0,
  15. double indicatorWidth = 25,
  16. double labelSize = 14,
  17. double unselectLabelSize = 13,
  18. bool isScrollable = true,
  19. ValueChanged<int>? tabClick,
})

Implementation

const VTopTabBar(
    {Key? key,
      required this.tabModelArr,
      required this.tabTitle,
      this.bgColor,
      this.labelColor = Colors.blue,
      this.unselectedLabelColor = Colors.black,
      this.tabHeight = 60.0,
      this.labelStyle,
      this.unselectedLabelStyle,
      this.indicator,
      this.showCenterLine = false,
      this.switchPageCallBack,
      this.indicatorBottom = 5,
      this.defaultIndex = 0,
      this.indicatorWidth = 25,
      this.labelSize = 14,
      this.unselectLabelSize = 13,
      this.isScrollable=true,
      this.tabClick
    })
    : super(key: key);