TDTabBar constructor
const
TDTabBar({
- Key? key,
- required List<
TDTab> tabs, - TabController? controller,
- Decoration? decoration,
- Color? backgroundColor,
- Color? indicatorColor,
- double? indicatorWidth,
- double? indicatorHeight,
- Color? labelColor,
- Color? unselectedLabelColor,
- bool isScrollable = false,
- TextStyle? unselectedLabelStyle,
- TextStyle? labelStyle,
- double? width,
- double? height,
- EdgeInsets? indicatorPadding,
- EdgeInsetsGeometry? labelPadding,
- Decoration? indicator,
- ScrollPhysics? physics,
- dynamic onTap()?,
- TDTabBarOutlineType outlineType = TDTabBarOutlineType.filled,
- bool showIndicator = false,
Implementation
const TDTabBar(
{Key? key,
required this.tabs,
this.controller,
this.decoration,
this.backgroundColor,
this.indicatorColor,
this.indicatorWidth,
this.indicatorHeight,
this.labelColor,
this.unselectedLabelColor,
this.isScrollable = false,
this.unselectedLabelStyle,
this.labelStyle,
this.width,
this.height,
this.indicatorPadding,
this.labelPadding,
this.indicator,
this.physics,
this.onTap,
this.outlineType = TDTabBarOutlineType.filled,
this.showIndicator = false})
: assert(
backgroundColor == null || decoration == null,
'Cannot provide both a backgroundColor and a decoration\n'
'To provide both, use "decoration: BoxDecoration(color: color)".',
),
super(key: key);