From ca8d5c5c9631fe338b8246196bebafb963368cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= Date: Wed, 7 Sep 2022 15:58:00 +0200 Subject: [PATCH 1/2] Fix ok --- lib/provider/chat_provider.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/provider/chat_provider.dart b/lib/provider/chat_provider.dart index 8067cd9..7a67e9b 100644 --- a/lib/provider/chat_provider.dart +++ b/lib/provider/chat_provider.dart @@ -51,7 +51,7 @@ class ChatProvider extends ChangeNotifier { UnmodifiableListView> getLastMessageOfEachUser() { final result = _messages.entries.where((element) => element.value.isNotEmpty).map((e) { - MapEntry entry = MapEntry(e.key, e.value.last); + MapEntry entry = MapEntry(e.key, e.value.first); return entry; }).toList(); return UnmodifiableListView(result); From ac7d039c78b90d84a35c7e7fd4443934468c38d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9?= Date: Wed, 7 Sep 2022 16:09:58 +0200 Subject: [PATCH 2/2] Month instead of minutes --- lib/widgets/custom_list.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/custom_list.dart b/lib/widgets/custom_list.dart index 642724b..a830fdc 100644 --- a/lib/widgets/custom_list.dart +++ b/lib/widgets/custom_list.dart @@ -19,7 +19,7 @@ class CustomList extends StatelessWidget { @override Widget build(BuildContext context) { - DateFormat format = DateFormat('d/m/yy'); + DateFormat format = DateFormat('d/MM/yy'); return Column( children: [ StraightTopBar(title: _title),