From 559516efbd309327ebb135abf2ce20aff17064e5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 2 Nov 2019 09:57:22 +0100 Subject: [PATCH] Display the date of the notifications --- lib/ui/screens/notifications_screen.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ui/screens/notifications_screen.dart b/lib/ui/screens/notifications_screen.dart index 0eb2567..a7a7083 100644 --- a/lib/ui/screens/notifications_screen.dart +++ b/lib/ui/screens/notifications_screen.dart @@ -4,10 +4,11 @@ import 'package:comunic/helpers/users_helper.dart'; import 'package:comunic/lists/groups_list.dart'; import 'package:comunic/lists/notifications_list.dart'; import 'package:comunic/lists/users_list.dart'; +import 'package:comunic/models/notification.dart' as n; import 'package:comunic/ui/widgets/account_image_widget.dart'; +import 'package:comunic/utils/date_utils.dart'; import 'package:comunic/utils/intl_utils.dart'; import 'package:comunic/utils/ui_utils.dart'; -import 'package:comunic/models/notification.dart' as n; import 'package:flutter/material.dart'; /// Notifications screen @@ -225,6 +226,7 @@ class _NotificationTile extends StatelessWidget { user: srcUser, ), title: Text(message), + subtitle: Text(diffTimeFromNowToStr(notification.timeCreate)), ); } }