VTopTabBar constructor
const
VTopTabBar({
- Key? key,
- required List<
VTopTabBarModel> tabModelArr, - required List<
String> tabTitle, - Color? bgColor,
- Color? labelColor = Colors.blue,
- Color? unselectedLabelColor = Colors.black,
- double tabHeight = 60.0,
- TextStyle? labelStyle,
- TextStyle? unselectedLabelStyle,
- Decoration? indicator,
- bool showCenterLine = false,
- Function? switchPageCallBack,
- double indicatorBottom = 5,
- int defaultIndex = 0,
- double indicatorWidth = 25,
- double labelSize = 14,
- double unselectLabelSize = 13,
- bool isScrollable = true,
- 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);