Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gmalpha_flutter
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile
gmalpha_flutter
Commits
07997b2a
Commit
07997b2a
authored
Jul 10, 2019
by
jinzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时间戳
parent
3f3158ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
message_item.dart
lib/pages/message/home/message_item.dart
+10
-2
No files found.
lib/pages/message/home/message_item.dart
View file @
07997b2a
...
...
@@ -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
>[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment