TDTab constructor

  1. @override
const TDTab({
  1. Key? key,
  2. String? text,
  3. Widget? child,
  4. Widget? icon,
  5. TDBadge? badge,
  6. double? height,
  7. double? contentHeight,
  8. EdgeInsetsGeometry? textMargin,
  9. TDTabSize size = TDTabSize.small,
  10. TDTabOutlineType outlineType = TDTabOutlineType.filled,
  11. bool enable = true,
  12. EdgeInsetsGeometry iconMargin = const EdgeInsets.only(bottom: 4.0, right: 4.0),
})

Implementation

@override
const TDTab(
    {Key? key,
    this.text,
    this.child,
    this.icon,
    this.badge,
    this.height,
    this.contentHeight,
    this.textMargin,
    this.size = TDTabSize.small,
    this.outlineType = TDTabOutlineType.filled,
    this.enable = true,
    this.iconMargin = const EdgeInsets.only(bottom: 4.0, right: 4.0)})
    : super(
          key: key,
          text: text,
          child: child,
          icon: icon,
          height: height,
          iconMargin: iconMargin);