GTFCell constructor

const GTFCell({
  1. Key? key,
  2. VoidCallback? onTap,
  3. String? leftTitle,
  4. String? leftDes,
  5. String? rightTitle,
  6. String? rightDes,
  7. String? tag,
  8. String? leftIcon,
  9. String? rightIcon,
  10. bool hideLeftIcon = false,
  11. bool hideRightIcon = false,
  12. bool hideLine = false,
  13. double leftTitleDesSpacing = 3,
  14. double leftTitleTagSpacing = 4,
  15. double leftIconSpacing = 8,
  16. double? leftIconWidth = 20,
  17. double? leftIconHeight = 20,
  18. double rightTitleDesSpacing = 1,
  19. double rightIconSpacing = 4,
  20. double? rightIconWidth = 20,
  21. double? rightIconHeight = 20,
  22. double radius = 0,
  23. double tagRadius = 2,
  24. double minHeight = 44,
  25. double? lineHeight = 0.5,
  26. GTFCellTagAlignment tagAlignment = GTFCellTagAlignment.left,
  27. double? leftTitleFontSize = GTFFont.base,
  28. double? leftDesFontSize = GTFFont.caption,
  29. double? rightTitleFontSize = GTFFont.base,
  30. double? rightDesFontSize = GTFFont.caption,
  31. double? tagFontSize = GTFFont.subCaption,
  32. FontWeight? leftTitleFontWeight = GTFFont.regular,
  33. FontWeight? leftDesFontWeight = GTFFont.regular,
  34. FontWeight? rightTitleFontWeight = GTFFont.regular,
  35. FontWeight? rightDesFontWeight = GTFFont.regular,
  36. FontWeight? tagFontWeight = GTFFont.regular,
  37. EdgeInsets? margin = const EdgeInsets.fromLTRB(16, 10, 16, 10),
  38. EdgeInsets padding = const EdgeInsets.all(12),
  39. EdgeInsets tagPadding = const EdgeInsets.fromLTRB(5, 0, 5, 1),
  40. Color? backgroundColor = GTFColor.white,
  41. Color? leftTitleColor = GTFColor.grey6,
  42. Color? leftDesColor = GTFColor.grey4,
  43. Color? rightTitleColor = GTFColor.grey4,
  44. Color? rightDesColor = GTFColor.grey4,
  45. Color? tagColor = GTFColor.grey6,
  46. Color tagBackgroundColor = GTFColor.yellowPrimary,
  47. 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);