我需要的是多行文本。我正在赋予的属性,maxLines但它RenderFlex的右边仍然会溢出错误,因为下一个不会到达第二行,
Align( alignment: Alignment.bottomCenter,
child: new ButtonBar(
alignment: MainAxisAlignment.center,
children: <Widget>[
Padding(
padding: EdgeInsets.all(20.0),
child: new Text(
"This is a very bigggggggg text !!!",textDirection: TextDirection.ltr,
style: new TextStyle(fontSize: 20.0, color: Colors.white),
maxLines: 2,
),
)
],
),
)
Run Code Online (Sandbox Code Playgroud)