mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-26 14:59:22 +00:00
Improve call membership tile
This commit is contained in:
parent
25222e9156
commit
63a8e61e80
@ -167,13 +167,20 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
|
|||||||
: (conversation.sawLastMessage ? null : Color(0xFF1c443a)),
|
: (conversation.sawLastMessage ? null : Color(0xFF1c443a)),
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
dense: true,
|
dense: true,
|
||||||
leading: Icon(conversation.isHavingCall ? Icons.phone : Icons.message),
|
leading: Icon(Icons.message),
|
||||||
title: Text(
|
title: Text(
|
||||||
ConversationsHelper.getConversationName(conversation, _usersList)),
|
ConversationsHelper.getConversationName(conversation, _usersList)),
|
||||||
subtitle: Text(diffTimeFromNowToStr(membership.lastActive) +
|
subtitle: Text(diffTimeFromNowToStr(membership.lastActive) +
|
||||||
(conversation.isHavingCall ? "\n" + tr("Ongoing call") : "")),
|
(conversation.isHavingCall ? "\n" + tr("Ongoing call") : "")),
|
||||||
onTap: () =>
|
onTap: () =>
|
||||||
MainController.of(context).openConversation(conversation.id),
|
MainController.of(context).openConversation(conversation.id),
|
||||||
|
trailing: conversation.isHavingCall
|
||||||
|
? FloatingActionButton(
|
||||||
|
child: Icon(Icons.call),
|
||||||
|
onPressed: () =>
|
||||||
|
MainController.of(context).startCall(conversation.id),
|
||||||
|
)
|
||||||
|
: null,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user