From b71a8ae6bbab578498d3dec7d61880947b462ffb Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 23 Apr 2019 18:23:34 +0200 Subject: [PATCH] Improve conversations appearance --- lib/ui/tiles/conversation_tile.dart | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/lib/ui/tiles/conversation_tile.dart b/lib/ui/tiles/conversation_tile.dart index 40c09d3..6efe938 100644 --- a/lib/ui/tiles/conversation_tile.dart +++ b/lib/ui/tiles/conversation_tile.dart @@ -35,14 +35,24 @@ class ConversationTile extends StatelessWidget { @override Widget build(BuildContext context) { return ListTile( - title: Text(ConversationsHelper.getConversationName( - conversation, - usersList, - )), + // Conversation name + title: Text( + ConversationsHelper.getConversationName( + conversation, + usersList, + ), + style: TextStyle( + fontWeight: conversation.sawLastMessage ? null : FontWeight.bold, + ), + ), + + // Leading icon leading: Icon( conversation.sawLastMessage ? Icons.check_circle : Icons.lens, color: conversation.sawLastMessage ? null : Colors.blue, ), + + // Conversation information isThreeLine: true, subtitle: Column( crossAxisAlignment: CrossAxisAlignment.stretch,