TDTabBar constructor

const TDTabBar({
  1. Key? key,
  2. required List<TDTab> tabs,
  3. TabController? controller,
  4. Decoration? decoration,
  5. Color? backgroundColor,
  6. Color? indicatorColor,
  7. double? indicatorWidth,
  8. double? indicatorHeight,
  9. Color? labelColor,
  10. Color? unselectedLabelColor,
  11. bool isScrollable = false,
  12. TextStyle? unselectedLabelStyle,
  13. TextStyle? labelStyle,
  14. double? width,
  15. double? height,
  16. EdgeInsets? indicatorPadding,
  17. EdgeInsetsGeometry? labelPadding,
  18. Decoration? indicator,
  19. ScrollPhysics? physics,
  20. dynamic onTap(
    1. int
    )?,
  21. TDTabBarOutlineType outlineType = TDTabBarOutlineType.filled,
  22. 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);