mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Improve conversations appearance
This commit is contained in:
parent
2cb9a7e1c0
commit
b71a8ae6bb
@ -35,14 +35,24 @@ class ConversationTile extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return ListTile(
|
||||
title: Text(ConversationsHelper.getConversationName(
|
||||
// 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,
|
||||
|
Loading…
Reference in New Issue
Block a user