在 Flutter 中如何仅设置底部边框,
如下图所示,我有一个带有文本的容器,从底部显示红色边框,请指导如何仅从底部设置边框。
Use Border
与bottom
争论。
Container(
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(width: 1.5, color: Colors.grey[300]),
),
),
child: ListTile(
title: Text(title),
subtitle: Text(score + dateFormatted),
trailing: Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(amount),
Checkbox(
value: false,
activeColor: Colors.green,
onChanged: (bool newValue) {}),
],
),
),
);
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)