Colors.blue.withOpacity(.4),
child: Text('老孟', textAlign: TextAlign.center),
),
textAlign只是控制水平方向的对齐方式,值说明如下...技术和应用实战',softWrap: true,),
)
文本超出范围时的处理:
Container(
height: 100,
width: 200,
color: Colors.blue.withOpacity...-10个字母',
helperStyle: TextStyle(color: Colors.blue),
helperMaxLines: 1
),
)
hintText是当输入框为空时的提示...带前后置标签的文本
RichText(
text: TextSpan(
style: DefaultTextStyle.of(context).style,
children...: [
WidgetSpan(
child: Container(
margin: EdgeInsets.only