TxCell constructor
const
TxCell({
- Key? key,
- Widget? label,
- String? labelText,
- TextStyle? labelTextStyle,
- Widget? leading,
- TextStyle? leadingTextStyle,
- Color? iconColor,
- Widget? content,
- String? contentText,
- TextStyle? contentTextStyle,
- EdgeInsetsGeometry? padding,
- double? minLabelWidth,
- bool? dense,
- VisualDensity? visualDensity,
- Color? contentTextColor,
- double? horizontalGap,
- double? minLeadingWidth,
- double? minVerticalPadding,
- TextAlign? contentTextAlign,
- int? contentMaxLines = 1,
创建一个TxCell组件
Implementation
const TxCell({
super.key,
this.label,
this.labelText,
this.labelTextStyle,
this.leading,
this.leadingTextStyle,
this.iconColor,
this.content,
this.contentText,
this.contentTextStyle,
this.padding,
this.minLabelWidth,
this.dense,
this.visualDensity,
this.contentTextColor,
this.horizontalGap,
this.minLeadingWidth,
this.minVerticalPadding,
this.contentTextAlign,
this.contentMaxLines = 1,
}) : assert(label != null || labelText != null);