0
点赞
收藏
分享

微信扫一扫

Flutter Column嵌套 Row Text 超出屏幕

Resin_Wu 2023-03-17 阅读 80


解决方案也很简单。 使用Expanded就可以了

Row(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
// margin: EdgeInsets.only(top: 4),
width: 10,
height: 10,
decoration: BoxDecoration(
color: Colors.black87,
borderRadius: BorderRadius.all(Radius.circular(5))),
),
SizedBox(
width: 5,
),
Expanded(
child: Text(
"点击“确认注销”将被视为您授权并认可系统清空以上信息",
style: TextStyle(
color: Colors.black87,
fontSize: 16,
fontWeight: FontWeight.bold),
),
),
],
),

举报

相关推荐

0 条评论