From d3f5fb6c281b14f07ae80ee0a96d505be8ba36d3 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 18 May 2019 18:50:15 +0200 Subject: [PATCH] Show time of posts --- lib/ui/tiles/comment_tile.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui/tiles/comment_tile.dart b/lib/ui/tiles/comment_tile.dart index 5505de0..b61bb1e 100644 --- a/lib/ui/tiles/comment_tile.dart +++ b/lib/ui/tiles/comment_tile.dart @@ -2,6 +2,7 @@ import 'package:comunic/models/comment.dart'; import 'package:comunic/models/user.dart'; import 'package:comunic/ui/widgets/account_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:flutter/material.dart'; @@ -40,6 +41,7 @@ class CommentTile extends StatelessWidget { user.displayName, ), subtitle: _buildCommentContent(), + trailing: Text(diffTimeFromNowToStr(comment.timeSent), style: TextStyle(fontSize: 10.0),), ); }