时间戳转时间
Container(
padding:EdgeInsets.only(top: ScreenUtil().setHeight(5)),
child: Text(
DateTime.fromMillisecondsSinceEpoch(
data.createdAt * 1000)
.toString()
.substring(0, 7),
style: TextStyle(
fontSize: ScreenUtil().setSp(14),
color: Color(0xff666666))),
),