make method
Implementation
@override
Widget make({Key? key}) {
if (!willRender) return const VxNone();
final ts = TextStyle(
color: velocityColor,
fontSize: _fontSize,
fontStyle: _fontStyle,
fontFamily: _fontFamily,
fontWeight: _fontWeight,
letterSpacing: _letterSpacing,
decoration: _decoration,
height: _lineHeight,
textBaseline: _textBaseline ?? TextBaseline.alphabetic,
wordSpacing: _wordSpacing,
);
return _isIntrinsic
? Text.rich(
TextSpan(
text: _text,
children: _textSpanChildren,
recognizer: _gestureRecognizer,
style: _themedStyle?.merge(ts) ?? _textStyle?.merge(ts) ?? ts,
),
key: key,
textAlign: _textAlign,
maxLines: _maxLines,
textScaleFactor: _scaleFactor,
softWrap: _softWrap ?? true,
overflow: _overflow ?? TextOverflow.clip,
strutStyle: _strutStyle,
)
: AutoSizeText.rich(
TextSpan(
text: _text,
children: _textSpanChildren,
recognizer: _gestureRecognizer,
style: _themedStyle?.merge(ts) ?? _textStyle?.merge(ts) ?? ts,
),
key: key,
textAlign: _textAlign,
maxLines: _maxLines,
textScaleFactor: _scaleFactor,
softWrap: _softWrap ?? true,
minFontSize: _minFontSize ?? 12,
maxFontSize: _maxFontSize ?? double.infinity,
stepGranularity: _stepGranularity ?? 1,
overflowReplacement: _replacement,
overflow: _overflow ?? TextOverflow.clip,
strutStyle: _strutStyle,
wrapWords: _wrapWords ?? true,
);
}