TxTabBar constructor
const
TxTabBar({
- required List<
Widget> tabs, - Key? key,
- TabController? controller,
- EdgeInsetsGeometry? padding,
- Color? indicatorColor,
- bool automaticIndicatorColorAdjustment = true,
- TabIndicatorDecoration? indicatorDecoration,
- double indicatorWeight = 2.0,
- EdgeInsetsGeometry indicatorPadding = EdgeInsets.zero,
- UnderlineTabIndicator? indicator,
- TabBarIndicatorSize? indicatorSize,
- Color? dividerColor,
- double? dividerHeight,
- Color? labelColor,
- TextStyle? labelStyle,
- EdgeInsetsGeometry? labelPadding,
- Color? unselectedLabelColor,
- TextStyle? unselectedLabelStyle,
- ValueChanged<
int> ? onTap,
创建一个不规则形状的TabBar
Implementation
const TxTabBar({
required super.tabs,
super.key,
super.controller,
super.padding,
super.indicatorColor,
super.automaticIndicatorColorAdjustment = true,
this.indicatorDecoration,
super.indicatorWeight = 2.0,
super.indicatorPadding = EdgeInsets.zero,
super.indicator,
super.indicatorSize,
this.dividerColor,
this.dividerHeight,
super.labelColor,
super.labelStyle,
super.labelPadding,
super.unselectedLabelColor,
super.unselectedLabelStyle,
super.onTap,
}) : assert(indicator != null || (indicatorWeight > 0.0));