twemoji_v2 0.5.0 copy "twemoji_v2: ^0.5.0" to clipboard
twemoji_v2: ^0.5.0 copied to clipboard

discontinued
outdated

Twemoji for Flutter based on Twemoji 14.1.2 - Supports SVG & 72x72px PNGs

twemoji_v2 #

Originally maintained by hadi-codes, extended to support the newest set of twemoji.

Twemoji for Flutter, supports SVG and 72x72px PNG emojis

Based on jdecked's fork of twemoji (v14.1.2)

[art/1.png]

Usage #

Twemoji to display single emojis

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.

2
likes
0
points
59
downloads

Publisher

verified publisherjasonlessenich.dev

Weekly Downloads

Twemoji for Flutter based on Twemoji 14.1.2 - Supports SVG & 72x72px PNGs

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

characters, flutter, flutter_svg, io, path, yaml

More

Packages that depend on twemoji_v2