1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +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/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),),
);
}