TDTab constructor
const
TDTab({
- Key? key,
- String? text,
- Widget? child,
- Widget? icon,
- TDBadge? badge,
- double? height,
- double? contentHeight,
- EdgeInsetsGeometry? textMargin,
- TDTabSize size = TDTabSize.small,
- TDTabOutlineType outlineType = TDTabOutlineType.filled,
- bool enable = true,
- 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);