mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
chore: Add icons to chat popup menu
This commit is contained in:
parent
299ed4f25a
commit
2c62acb5f6
@ -43,15 +43,33 @@ class _ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
|
|||||||
widget.room.pushRuleState == PushRuleState.notify
|
widget.room.pushRuleState == PushRuleState.notify
|
||||||
? PopupMenuItem<String>(
|
? PopupMenuItem<String>(
|
||||||
value: 'mute',
|
value: 'mute',
|
||||||
child: Text(L10n.of(context).muteChat),
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Icon(Icons.notifications_off_outlined),
|
||||||
|
SizedBox(width: 12),
|
||||||
|
Text(L10n.of(context).muteChat),
|
||||||
|
],
|
||||||
|
),
|
||||||
)
|
)
|
||||||
: PopupMenuItem<String>(
|
: PopupMenuItem<String>(
|
||||||
value: 'unmute',
|
value: 'unmute',
|
||||||
child: Text(L10n.of(context).unmuteChat),
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Icon(Icons.notifications_on_outlined),
|
||||||
|
SizedBox(width: 12),
|
||||||
|
Text(L10n.of(context).unmuteChat),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
PopupMenuItem<String>(
|
PopupMenuItem<String>(
|
||||||
value: 'leave',
|
value: 'leave',
|
||||||
child: Text(L10n.of(context).leave),
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Icon(Icons.delete_outlined),
|
||||||
|
SizedBox(width: 12),
|
||||||
|
Text(L10n.of(context).leave),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
if (widget.displayChatDetails) {
|
if (widget.displayChatDetails) {
|
||||||
@ -59,7 +77,13 @@ class _ChatSettingsPopupMenuState extends State<ChatSettingsPopupMenu> {
|
|||||||
0,
|
0,
|
||||||
PopupMenuItem<String>(
|
PopupMenuItem<String>(
|
||||||
value: 'details',
|
value: 'details',
|
||||||
child: Text(L10n.of(context).chatDetails),
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Icon(Icons.info_outline_rounded),
|
||||||
|
SizedBox(width: 12),
|
||||||
|
Text(L10n.of(context).chatDetails),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user