borisgrigorov / twemoji

Twitter Emojis for Flutter, this package supports svg and png 72x72 emojis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twemoji

Twitter Emojis for Flutter, this package supports svg and png 72x72 emojis

Usage

Twemoji widget for a single emoji

 Twemoji(
                emoji: 'πŸ•',
                height: 50,
                width: 50,
               ),

TwemojiText returns a widget with rendered text with twitter emojis

 const TwemojiText(
                text: 'wow πŸ’»πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» ',
 ),

TwemojiTextSpan with RichText and it will render the text with twitter Emojies

 RichText(
              text: TwemojiTextSpan(
                text: 'Text πŸ•πŸ”πŸŒ­πŸΏπŸ§‚πŸ₯“πŸ₯¨πŸ₯πŸžπŸ₯žπŸ₯ž',
                style: Theme.of(context).textTheme.headline6,
              ),
            ),

Screenshot

Demo

Limitation The svg emojis will not work on flutter html web renderer because the flutter_svg package does not support it

TODO

  • Add SVG support
  • Find a way to get an emoji code. For example: πŸ˜€ => "1F600"
  • Extend Textfield widget to support twemoji

About twemoji: https://twemoji.twitter.com/

About

Twitter Emojis for Flutter, this package supports svg and png 72x72 emojis

License:MIT License


Languages

Language:C++ 49.3%Language:Dart 25.7%Language:CMake 19.1%Language:HTML 3.6%Language:C 1.0%Language:Swift 1.0%Language:Kotlin 0.3%Language:Objective-C 0.1%