YCText constructor

const YCText(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. String? leftIcon,
  5. double? leftIconWidth = 22,
  6. double? leftIconHeight = 22,
  7. double? iconMarginRight = 0,
  8. String? rightIcon,
  9. double? rightIconWidth = 22,
  10. double? rightIconHeight = 22,
  11. double? iconMarginLeft = 0,
  12. String? topIcon,
  13. double? topIconWidth = 22,
  14. double? topIconHeight = 22,
  15. double? iconMarginBottom = 0,
  16. String? bottomIcon,
  17. double? bottomIconWidth = 22,
  18. double? bottomIconHeight = 22,
  19. double? iconMarginTop = 0,
  20. MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.center,
  21. TextOverflow? textOverflow,
  22. TextAlign? textAlign,
  23. int? maxLines,
  24. List<TextRichBean>? richList,
  25. dynamic onRichClick(
    1. int,
    2. TextRichBean
    )?,
  26. double? width,
  27. double? height,
  28. double? margin,
  29. double? marginLeft,
  30. double? marginTop,
  31. double? marginRight,
  32. double? marginBottom,
  33. double? padding,
  34. double? paddingLeft,
  35. double? paddingTop,
  36. double? paddingRight,
  37. double? paddingBottom,
  38. Color? backgroundColor,
  39. double? strokeWidth,
  40. Color? strokeColor,
  41. Color? solidColor,
  42. double? radius,
  43. bool? isCircle,
  44. double? leftTopRadius,
  45. double? rightTopRadius,
  46. double? leftBottomRadius,
  47. double? rightBottomRadius,
  48. Widget? childWidget,
  49. Alignment? alignment,
  50. VoidCallback? onClick,
  51. VoidCallback? onDoubleClick,
  52. VoidCallback? onLongPress,
})

Implementation

const YCText(this.text,
    {super.key,
      this.style,
      this.leftIcon,
      this.leftIconWidth = 22,
      this.leftIconHeight = 22,
      this.iconMarginRight = 0,
      this.rightIcon,
      this.rightIconWidth = 22,
      this.rightIconHeight = 22,
      this.iconMarginLeft = 0,
      this.topIcon,
      this.topIconWidth = 22,
      this.topIconHeight = 22,
      this.iconMarginBottom = 0,
      this.bottomIcon,
      this.bottomIconWidth = 22,
      this.bottomIconHeight = 22,
      this.iconMarginTop = 0,
      this.mainAxisAlignment = MainAxisAlignment.center,
      this.textOverflow,
      this.textAlign,
      this.maxLines,
      this.richList,
      this.onRichClick,
      super.width,
      super.height,
      super.margin,
      super.marginLeft,
      super.marginTop,
      super.marginRight,
      super.marginBottom,
      super.padding,
      super.paddingLeft,
      super.paddingTop,
      super.paddingRight,
      super.paddingBottom,
      super.backgroundColor,
      super.strokeWidth,
      super.strokeColor,
      super.solidColor,
      super.radius,
      super.isCircle,
      super.leftTopRadius,
      super.rightTopRadius,
      super.leftBottomRadius,
      super.rightBottomRadius,
      super.childWidget,
      super.alignment,
      super.onClick,
      super.onDoubleClick,
      super.onLongPress});