feat: эмодзи. Пока только фронтенд. issue #45

This commit is contained in:
Jganenokk
2026-07-09 00:26:41 +07:00
parent f4a30328ff
commit 6c56f2fa7e
8 changed files with 634 additions and 20 deletions
+12
View File
@@ -32,6 +32,18 @@ class EmojiKeywordIndex {
});
}
List<String> get all =>
List.unmodifiable(_entries.map((e) => e.emoji));
List<String> search(String query) {
final targets = resolve(query);
if (targets.isEmpty) return const [];
return [
for (final entry in _entries)
if (targets.contains(entry.emoji)) entry.emoji,
];
}
static String normalize(String emoji) =>
emoji.replaceAll(_variationSelector, '');