1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Show time of posts

This commit is contained in:
Pierre HUBERT 2019-05-18 18:50:15 +02:00
parent 67b6764f09
commit d3f5fb6c28

View File

@ -2,6 +2,7 @@ import 'package:comunic/models/comment.dart';
import 'package:comunic/models/user.dart'; import 'package:comunic/models/user.dart';
import 'package:comunic/ui/widgets/account_image_widget.dart'; import 'package:comunic/ui/widgets/account_image_widget.dart';
import 'package:comunic/ui/widgets/network_image_widget.dart'; import 'package:comunic/ui/widgets/network_image_widget.dart';
import 'package:comunic/utils/date_utils.dart';
import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/intl_utils.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -40,6 +41,7 @@ class CommentTile extends StatelessWidget {
user.displayName, user.displayName,
), ),
subtitle: _buildCommentContent(), subtitle: _buildCommentContent(),
trailing: Text(diffTimeFromNowToStr(comment.timeSent), style: TextStyle(fontSize: 10.0),),
); );
} }