GTFCell constructor
const
GTFCell({
- Key? key,
- VoidCallback? onTap,
- String? leftTitle,
- String? leftDes,
- String? rightTitle,
- String? rightDes,
- String? tag,
- String? leftIcon,
- String? rightIcon,
- bool hideLeftIcon = false,
- bool hideRightIcon = false,
- bool hideLine = false,
- double leftTitleDesSpacing = 3,
- double leftTitleTagSpacing = 4,
- double leftIconSpacing = 8,
- double? leftIconWidth = 20,
- double? leftIconHeight = 20,
- double rightTitleDesSpacing = 1,
- double rightIconSpacing = 4,
- double? rightIconWidth = 20,
- double? rightIconHeight = 20,
- double radius = 0,
- double tagRadius = 2,
- double minHeight = 44,
- double? lineHeight = 0.5,
- GTFCellTagAlignment tagAlignment = GTFCellTagAlignment.left,
- double? leftTitleFontSize = GTFFont.base,
- double? leftDesFontSize = GTFFont.caption,
- double? rightTitleFontSize = GTFFont.base,
- double? rightDesFontSize = GTFFont.caption,
- double? tagFontSize = GTFFont.subCaption,
- FontWeight? leftTitleFontWeight = GTFFont.regular,
- FontWeight? leftDesFontWeight = GTFFont.regular,
- FontWeight? rightTitleFontWeight = GTFFont.regular,
- FontWeight? rightDesFontWeight = GTFFont.regular,
- FontWeight? tagFontWeight = GTFFont.regular,
- EdgeInsets? margin = const EdgeInsets.fromLTRB(16, 10, 16, 10),
- EdgeInsets padding = const EdgeInsets.all(12),
- EdgeInsets tagPadding = const EdgeInsets.fromLTRB(5, 0, 5, 1),
- Color? backgroundColor = GTFColor.white,
- Color? leftTitleColor = GTFColor.grey6,
- Color? leftDesColor = GTFColor.grey4,
- Color? rightTitleColor = GTFColor.grey4,
- Color? rightDesColor = GTFColor.grey4,
- Color? tagColor = GTFColor.grey6,
- Color tagBackgroundColor = GTFColor.yellowPrimary,
- Color? lineColor = GTFColor.grey2,
Implementation
const GTFCell({
Key? key,
this.onTap,
this.leftTitle,
this.leftDes,
this.rightTitle,
this.rightDes,
this.tag,
this.leftIcon,
this.rightIcon,
this.hideLeftIcon = false,
this.hideRightIcon = false,
this.hideLine = false,
this.leftTitleDesSpacing = 3,
this.leftTitleTagSpacing = 4,
this.leftIconSpacing = 8,
this.leftIconWidth = 20,
this.leftIconHeight = 20,
this.rightTitleDesSpacing = 1,
this.rightIconSpacing = 4,
this.rightIconWidth = 20,
this.rightIconHeight = 20,
this.radius = 0,
this.tagRadius = 2,
this.minHeight = 44,
this.lineHeight = 0.5,
this.tagAlignment = GTFCellTagAlignment.left,
this.leftTitleFontSize = GTFFont.base,
this.leftDesFontSize = GTFFont.caption,
this.rightTitleFontSize = GTFFont.base,
this.rightDesFontSize = GTFFont.caption,
this.tagFontSize = GTFFont.subCaption,
this.leftTitleFontWeight = GTFFont.regular,
this.leftDesFontWeight = GTFFont.regular,
this.rightTitleFontWeight = GTFFont.regular,
this.rightDesFontWeight = GTFFont.regular,
this.tagFontWeight = GTFFont.regular,
this.margin = const EdgeInsets.fromLTRB(16, 10, 16, 10),
this.padding = const EdgeInsets.all(12),
this.tagPadding = const EdgeInsets.fromLTRB(5, 0, 5, 1),
this.backgroundColor = GTFColor.white,
this.leftTitleColor = GTFColor.grey6,
this.leftDesColor = GTFColor.grey4,
this.rightTitleColor = GTFColor.grey4,
this.rightDesColor = GTFColor.grey4,
this.tagColor = GTFColor.grey6,
this.tagBackgroundColor = GTFColor.yellowPrimary,
this.lineColor = GTFColor.grey2,
}) : super(key: key);