From 63a8e61e8049e6e89b6525dfa969fc0084805be1 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 9 May 2020 20:19:16 +0200 Subject: [PATCH] Improve call membership tile --- lib/ui/widgets/tablet_mode/memberships_panel.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/ui/widgets/tablet_mode/memberships_panel.dart b/lib/ui/widgets/tablet_mode/memberships_panel.dart index 6b6a1c1..324dc7a 100644 --- a/lib/ui/widgets/tablet_mode/memberships_panel.dart +++ b/lib/ui/widgets/tablet_mode/memberships_panel.dart @@ -167,13 +167,20 @@ class _MembershipsPanelState extends SafeState { : (conversation.sawLastMessage ? null : Color(0xFF1c443a)), child: ListTile( dense: true, - leading: Icon(conversation.isHavingCall ? Icons.phone : Icons.message), + leading: Icon(Icons.message), title: Text( ConversationsHelper.getConversationName(conversation, _usersList)), subtitle: Text(diffTimeFromNowToStr(membership.lastActive) + (conversation.isHavingCall ? "\n" + tr("Ongoing call") : "")), onTap: () => MainController.of(context).openConversation(conversation.id), + trailing: conversation.isHavingCall + ? FloatingActionButton( + child: Icon(Icons.call), + onPressed: () => + MainController.of(context).startCall(conversation.id), + ) + : null, ), ); }