YCText class

Inheritance

Constructors

YCText.new(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(int, TextRichBean)?, 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})
const

Properties

alignment Alignment?
finalinherited
backgroundColor Color?
finalinherited
bottomIcon String?
final
bottomIconHeight double?
final
bottomIconWidth double?
final
childWidget Widget?
finalinherited
gradient int?
finalinherited
gradientBegin Alignment?
finalinherited
gradientColorList List<Color>?
finalinherited
gradientColorStops List<double>?
finalinherited
gradientEnd Alignment?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
finalinherited
iconMarginBottom double?
final
iconMarginLeft double?
final
iconMarginRight double?
final
iconMarginTop double?
final
isCircle bool?
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leftBottomRadius double?
finalinherited
leftIcon String?
final
leftIconHeight double?
final
leftIconWidth double?
final
leftTopRadius double?
finalinherited
mainAxisAlignment MainAxisAlignment?
final
margin double?
finalinherited
marginBottom double?
finalinherited
marginLeft double?
finalinherited
marginRight double?
finalinherited
marginTop double?
finalinherited
maxLines int?
final
onClick VoidCallback?
finalinherited
onDoubleClick VoidCallback?
finalinherited
onLongPress VoidCallback?
finalinherited
onRichClick → dynamic Function(int, TextRichBean)?
final
padding double?
finalinherited
paddingBottom double?
finalinherited
paddingLeft double?
finalinherited
paddingRight double?
finalinherited
paddingTop double?
finalinherited
radius double?
finalinherited
richList List<TextRichBean>?
final
rightBottomRadius double?
finalinherited
rightIcon String?
final
rightIconHeight double?
final
rightIconWidth double?
final
rightTopRadius double?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
solidColor Color?
finalinherited
strokeColor Color?
finalinherited
strokeWidth double?
finalinherited
style TextStyle?
final
text String
final
textAlign TextAlign?
final
textOverflow TextOverflow?
final
topIcon String?
final
topIconHeight double?
final
topIconWidth double?
final
width double?
finalinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
getDecoration() Decoration?
inherited
getImageWidget(String icon, double width, double height) Widget
getTextWidget() Widget
getWidget(BuildContext context) Widget
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited