mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-20 11:09:25 +01:00
change: Move video call button to menu
This commit is contained in:
parent
b65f792817
commit
099f9cf881
@ -756,6 +756,9 @@ class ChatController extends State<Chat> {
|
|||||||
if (choice == 'location') {
|
if (choice == 'location') {
|
||||||
sendLocationAction();
|
sendLocationAction();
|
||||||
}
|
}
|
||||||
|
if (choice == 'videocall') {
|
||||||
|
startCallAction();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void onInputBarChanged(String text) {
|
void onInputBarChanged(String text) {
|
||||||
|
@ -80,6 +80,18 @@ class ChatInputRow extends StatelessWidget {
|
|||||||
onSelected: controller.onAddPopupMenuButtonSelected,
|
onSelected: controller.onAddPopupMenuButtonSelected,
|
||||||
itemBuilder: (BuildContext context) =>
|
itemBuilder: (BuildContext context) =>
|
||||||
<PopupMenuEntry<String>>[
|
<PopupMenuEntry<String>>[
|
||||||
|
PopupMenuItem<String>(
|
||||||
|
value: 'videocall',
|
||||||
|
child: ListTile(
|
||||||
|
leading: const CircleAvatar(
|
||||||
|
backgroundColor: Colors.blueGrey,
|
||||||
|
foregroundColor: Colors.white,
|
||||||
|
child: Icon(Icons.video_call_outlined),
|
||||||
|
),
|
||||||
|
title: Text(L10n.of(context).videoCall),
|
||||||
|
contentPadding: const EdgeInsets.all(0),
|
||||||
|
),
|
||||||
|
),
|
||||||
PopupMenuItem<String>(
|
PopupMenuItem<String>(
|
||||||
value: 'file',
|
value: 'file',
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
|
@ -96,12 +96,6 @@ class ChatView extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
if (controller.room.canSendDefaultStates)
|
|
||||||
IconButton(
|
|
||||||
tooltip: L10n.of(context).videoCall,
|
|
||||||
icon: const Icon(Icons.video_call_outlined),
|
|
||||||
onPressed: controller.startCallAction,
|
|
||||||
),
|
|
||||||
ChatSettingsPopupMenu(controller.room, !controller.room.isDirectChat),
|
ChatSettingsPopupMenu(controller.room, !controller.room.isDirectChat),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user