Skip to content

Commit 802aa9a

Browse files
committed
reactions: Remove the touch feedback of "Cancel" button in emoji picker
Before this change, the Cancel button showed a faint background highlight when pressed, that extended horizontally to touch both the emoji search input and the screen edge, which looked odd. Removing the touch feedback also aligns it with Cancel and Compose buttons in the new-dm sheet.
1 parent 9cc6700 commit 802aa9a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/widgets/emoji_reaction.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -554,10 +554,8 @@ class _EmojiPickerState extends State<EmojiPicker> with PerAccountStoreAwareStat
554554
padding: const EdgeInsets.symmetric(horizontal: 8),
555555
splashFactory: NoSplash.splashFactory,
556556
foregroundColor: designVariables.contextMenuItemText,
557-
).copyWith(backgroundColor: WidgetStateColor.resolveWith((states) =>
558-
states.contains(WidgetState.pressed)
559-
? designVariables.contextMenuItemBg.withFadedAlpha(0.20)
560-
: Colors.transparent)),
557+
overlayColor: Colors.transparent,
558+
),
561559
child: Text(zulipLocalizations.dialogCancel,
562560
style: const TextStyle(fontSize: 20, height: 30 / 20))),
563561
])),

0 commit comments

Comments
 (0)