From 2c62acb5f6bc1ad16f5e1fe083c2928f21a986bc Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 29 Aug 2021 16:52:42 +0200 Subject: [PATCH] chore: Add icons to chat popup menu --- lib/widgets/chat_settings_popup_menu.dart | 32 ++++++++++++++++++++--- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/lib/widgets/chat_settings_popup_menu.dart b/lib/widgets/chat_settings_popup_menu.dart index b340099e..495f26cb 100644 --- a/lib/widgets/chat_settings_popup_menu.dart +++ b/lib/widgets/chat_settings_popup_menu.dart @@ -43,15 +43,33 @@ class _ChatSettingsPopupMenuState extends State { widget.room.pushRuleState == PushRuleState.notify ? PopupMenuItem( 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( 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( 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) { @@ -59,7 +77,13 @@ class _ChatSettingsPopupMenuState extends State { 0, PopupMenuItem( value: 'details', - child: Text(L10n.of(context).chatDetails), + child: Row( + children: [ + Icon(Icons.info_outline_rounded), + SizedBox(width: 12), + Text(L10n.of(context).chatDetails), + ], + ), ), ); }