A Dart library for incorporating emojis into your application.
Supports the popular GitHub Emoji and common emoticons like <3
and :)
.
A simple usage example:
import 'package:emoji/emoji.dart';
main() {
var text = 'Rock on! <3 :metal:';
print(replaceWithEmojis(text));
// Rock on! <img src="https://assets-cdn.github.com/images/icons/emoji/unicode/2764.png?v5" class="emoji" /> <img src="https://assets-cdn.github.com/images/icons/emoji/metal.png?v5" class="emoji" />
print(replaceEmoticonsWithEmojiCodes(text));
// Rock on! :heart: :metal:
print(replaceEmojiCodesWithGlyphs(text));
// Rock on! <3 <img src="https://assets-cdn.github.com/images/icons/emoji/metal.png?v5" class="emoji" />
}
Please file feature requests and bugs at the issue tracker.