我在我的Flutter应用程序中使用这个简单的小工具:
FlatButton(
child: Column(
children: <Widget>[
Image.asset(assets, height: 40, width: 40),
Text('Title'),
//my color line
Container(
height: 5,
width: ?,
color: Colors.blue[800],
)
],
)
)
我需要底部的彩色线条,宽度与父元素相匹配。但我不知道该如何实现。