Skip to content

woven/emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emoji

A Dart library for incorporating emojis into your application.

Supports the popular GitHub Emoji and common emoticons like <3 and :).

Usage

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" />
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Releases

No releases published

Packages

No packages published

Languages