1. Text 文本
const Text(
this.data, {
Key key,
this.style, // style: TextStyle(fontSize: 36)
this.strutStyle,
this.textAlign,
this.textDirection, // TextDirection.ltr
this.locale,
this.softWrap,
this.overflow,
this.textScaleFactor,
this.maxLines,
this.semanticsLabel,
this.textWidthBasis,
this.textHeightBehavior,
})
1.1. Text范例
Text(
'勾选协议',
style: TextStyle(fontSize: 36),
textDirection: TextDirection.ltr,
),