YCText constructor
const
YCText(
- String text, {
- Key? key,
- TextStyle? style,
- String? leftIcon,
- double? leftIconWidth = 22,
- double? leftIconHeight = 22,
- double? iconMarginRight = 0,
- String? rightIcon,
- double? rightIconWidth = 22,
- double? rightIconHeight = 22,
- double? iconMarginLeft = 0,
- String? topIcon,
- double? topIconWidth = 22,
- double? topIconHeight = 22,
- double? iconMarginBottom = 0,
- String? bottomIcon,
- double? bottomIconWidth = 22,
- double? bottomIconHeight = 22,
- double? iconMarginTop = 0,
- MainAxisAlignment? mainAxisAlignment = MainAxisAlignment.center,
- TextOverflow? textOverflow,
- TextAlign? textAlign,
- int? maxLines,
- List<
TextRichBean> ? richList, - dynamic onRichClick()?,
- double? width,
- double? height,
- double? margin,
- double? marginLeft,
- double? marginTop,
- double? marginRight,
- double? marginBottom,
- double? padding,
- double? paddingLeft,
- double? paddingTop,
- double? paddingRight,
- double? paddingBottom,
- Color? backgroundColor,
- double? strokeWidth,
- Color? strokeColor,
- Color? solidColor,
- double? radius,
- bool? isCircle,
- double? leftTopRadius,
- double? rightTopRadius,
- double? leftBottomRadius,
- double? rightBottomRadius,
- Widget? childWidget,
- Alignment? alignment,
- VoidCallback? onClick,
- VoidCallback? onDoubleClick,
- 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});