TxCell constructor

const TxCell({
  1. Key? key,
  2. Widget? label,
  3. String? labelText,
  4. TextStyle? labelTextStyle,
  5. Widget? leading,
  6. TextStyle? leadingTextStyle,
  7. Color? iconColor,
  8. Widget? content,
  9. String? contentText,
  10. TextStyle? contentTextStyle,
  11. EdgeInsetsGeometry? padding,
  12. double? minLabelWidth,
  13. bool? dense,
  14. VisualDensity? visualDensity,
  15. Color? contentTextColor,
  16. double? horizontalGap,
  17. double? minLeadingWidth,
  18. double? minVerticalPadding,
  19. TextAlign? contentTextAlign,
  20. 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);