dart_animated_emoji 0.1.2 copy "dart_animated_emoji: ^0.1.2" to clipboard
dart_animated_emoji: ^0.1.2 copied to clipboard

Noto Animated Emoji as efficient dotLottie animations in pure Dart.

dart_animated_emoji #

A pure dart representation of Noto Animated Emoji font for efficient animation rendering.

Does not depend on Flutter.

An animated unicorn with a rainbow

Features #

  • render as efficient Lottie
  • ship unified, compressed dotLottie animation font for easy Flutter use
  • check supported Unicode Glyphs
  • tiny and minimal dependencies
  • does not depend on Flutter

Usage #

If you are using Flutter, add the dotLottie font to your pubspec.yaml :

flutter:
  assets:
    - packages/dart_animated_emoji/generated/noto-animated.lottie
copied to clipboard
void main() {
  // check whether a particular emoji glyph is supported
  final isThumbsUpSupported = AnimatedEmoji.isEmojiSupported('👍🏽');

  final thumb = AnimatedEmoji.fromGlyph('👍🏽');

  // search for a supported emoji emoji by a tag
  final unicorn = AnimatedEmoji.all.firstWhere(
        (element) => element.tags.contains('unicorn'),
  );

  // render as Flutter widget using `lottie` package
  LottieBuilder.asset(
    AnimatedEmoji.flutterNotoDotLottieAsset,
    decoder: (bytes) =>
        LottieComposition.decodeZip(
          bytes,
          filePicker: unicorn.archiveFilePicker,
        ),
  );
}
copied to clipboard

For further documentation about Flutter rendering, check out the example or the package:lottie.

Package development #

# update the generated metadata and the dotLottie font
dart run dart_animated_emoji:generator lib/src/generated/emoji_list.g.dart

# additional information
dart run dart_animated_emoji:generator --help
copied to clipboard

Additional information #

This project is in no way affiliated with the Noto authors. The Noto Emoji Animated font is licensed as CC BY-4.0.

4
likes
160
points
1.03k
downloads
screenshot

Publisher

verified publisherbraid.business

Weekly Downloads

2024.08.26 - 2025.03.10

Noto Animated Emoji as efficient dotLottie animations in pure Dart.

Homepage
Repository (GitLab)
View/report issues

Documentation

API reference

License

EUPL-1.2 (license)

Dependencies

archive

More

Packages that depend on dart_animated_emoji