Skip to content

Commit

Permalink
Search with the emoji itself too (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn-sudo committed Jun 30, 2024
1 parent 6c9feb9 commit f341b4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/emoji_picker_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ class EmojiPickerUtils {

return _allAvailableEmojiEntities
.toSet()
.where(
(emoji) => emoji.name.toLowerCase().contains(keyword.toLowerCase()))
.where((emoji) =>
(emoji.name.toLowerCase().contains(keyword.toLowerCase()) ||
emoji.emoji == keyword.trim()))
.toSet()
.toList();
}
Expand Down

0 comments on commit f341b4f

Please sign in to comment.