0
点赞
收藏
分享

微信扫一扫

Flutter Row左右布局

MaxWen 2023-03-10 阅读 113


Row(
children: [
Text(
"发布时间",
style: TextStyle(
fontSize: 20, color: Colors.black54),
),
Expanded(
child: Text(''), // 中间用Expanded控件
),
Text(
DateTime.fromMillisecondsSinceEpoch(
int.parse(_goods.create_time) * 1000)
.toString()
.substring(0, 19),
style: TextStyle(
fontSize: 20, color: Colors.black54),
),
],
),

 

举报

相关推荐

0 条评论