childBuild method
子类布局用这个
Implementation
@override
Widget childBuild(BuildContext context) {
return Text(
widget.text ?? "",
textScaleFactor: 1.0,
maxLines: widget.maxLines,
overflow: TextOverflow.ellipsis,
style: widget.textStyle ??
TextStyle(
fontSize: widget.fontSize,
color: widget.fontColor,
fontWeight: widget.fontWeight,
height: widget.fontLineHeight,
fontFamily: widget.fontFamily,
),
);
}