CJTSTitleCommonValueTableViewCell constructor
const
CJTSTitleCommonValueTableViewCell({
- Key? key,
- double? height,
- BoxConstraints? constraints,
- double? leftRightPadding,
- Color? color,
- double? leftMaxWidth,
- double? rightMaxWidth,
- double? leftRightSpacing,
- ImageProvider<
Object> ? imageProvider, - double? imageWith,
- double? imageTitleSpace,
- required String title,
- String? titlePrompt,
- int? titlePromptMaxLines,
- double? titlePromptFontSize,
- required Widget? valueWidgetBuilder(
- BuildContext context, {
- required bool canExpanded,
- CJTSTableViewCellArrowImageType? arrowImageType = CJTSTableViewCellArrowImageType.none,
- int? section,
- int? row,
- ClickCellCallback? onTapCell,
- ClickCellCallback? onDoubleTapCell,
- ClickCellCallback? onLongPressCell,
Implementation
const CJTSTitleCommonValueTableViewCell({
Key? key,
this.height, // cell 的高度(内部已限制最小高度为44,要更改请设置 constraints)
this.constraints,
this.leftRightPadding,
this.color,
this.leftMaxWidth, // 限制左侧的最大宽度(左右两侧都未设置最大宽度时候,默认左边给完,剩下全给右边)
this.rightMaxWidth, // 限制右侧的最大宽度(左右两侧都未设置最大宽度时候,默认左边给完,剩下全给右边)
this.leftRightSpacing, // 左右两侧视图的间距(默认未未设置时候为0)
this.imageProvider,
this.imageWith,
this.imageTitleSpace,
required this.title,
this.titlePrompt,
this.titlePromptMaxLines,
this.titlePromptFontSize,
required this.valueWidgetBuilder,
this.arrowImageType = CJTSTableViewCellArrowImageType.none,
this.section,
this.row,
this.onTapCell,
this.onDoubleTapCell,
this.onLongPressCell,
}) : //assert(leftMaxWidth > 0 || rightMaxWidth > 0),
super(key: key);