Commit 07997b2a authored by jinzhu's avatar jinzhu

修改时间戳

parent 3f3158ca
......@@ -45,7 +45,14 @@ class MessageItem extends StatelessWidget {
);
timeStr() {
datefr
// datefr
DateTime dateTime = DateTime.fromMicrosecondsSinceEpoch(message.time.toInt(), isUtc: false);
String time = dateTime.toString();
time = time.substring("yyyy-".length, "yyyy-MM-dd".length);
print('时间---------');
print(time);
}
var contenRow = new Row (
......@@ -73,7 +80,8 @@ class MessageItem extends StatelessWidget {
);
return new GestureDetector(
onTap: onPressed,
// onTap: onPressed,
onTap: timeStr(),
child: new Container(
child: new Column(
children: <Widget>[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment