Skip to content
forked from hadi-codes/twemoji

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

License

Notifications You must be signed in to change notification settings

TimYusR/twemoji

 
 

Repository files navigation

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

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,
  ),
)

Including specific emojis

By default the library includes support for all emojis. To reduce bundle size and only build the emojis your application requires, specify a list of them in your pubspec.yaml:

twemoji:
  includes: '👩‍👩‍👧‍👧👏👍'

Then call flutter pub run twemoji:include_emojis to have it filter down the list of emojis to generate assets for.

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 74.6%
  • HTML 18.9%
  • Swift 5.7%
  • Other 0.8%