1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00

Add call button

This commit is contained in:
Pierre HUBERT 2021-04-06 18:47:38 +02:00
parent 5be678615c
commit 5bca30b634

View File

@ -25,10 +25,21 @@ class GroupConversationSection extends StatelessWidget {
), ),
Positioned( Positioned(
right: 1.0, right: 1.0,
child: IconButton( child: Row(
icon: Icon(Icons.settings), children: [
onPressed: () => MainController.of(context) conv.callCapabilities != CallCapabilities.NONE
.openConversationSettingsRoute(conv), ? IconButton(
icon: Icon(Icons.phone),
onPressed: () =>
MainController.of(context).startCall(conv.id),
)
: Container(),
IconButton(
icon: Icon(Icons.settings),
onPressed: () => MainController.of(context)
.openConversationSettingsRoute(conv),
),
],
), ),
) )
], ],