Coder Social home page Coder Social logo

roundedinfinity / animated_emoji Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 4.0 4.83 MB

A flutter package for using animated emojis

License: BSD 3-Clause "New" or "Revised" License

Java 0.26% Kotlin 0.06% Swift 0.62% Objective-C 0.30% Dart 76.58% CMake 9.59% C++ 10.23% C 0.96% HTML 0.91% Shell 0.48%
animation dart emoji flutter

animated_emoji's Introduction

๐Ÿš€

Animated Emoji

style: very good analysis

Provides over 400 animated emojis for your app.

Usage

Just use the AnimatedEmoji widget anywhere in your application and choose an emoji.

const AnimatedEmoji(
  AnimatedEmojis.rocket,
),

Configure the widget to your needs.

AnimatedEmoji(
  AnimatedEmojis.clap.dark,
  size: 128,
  repeat: false,
),

You can also add emojis to your assets for offline support.

First, import the emoji to your pubspec.yaml. The names can be found here.

You need to import the specific skin tones separately to use them (add the prefix to your imports, e.g. Dark, Light, ...)

...
flutter:
  assets:
    - packages/animated_emoji/lottie/rocket.json
    - packages/animated_emoji/lottie/clap.json 
    # Import a skin tone variation.
    - packages/animated_emoji/lottie/clapDark.json
โ˜

Additional information

This package uses Noto Animated Emoji which is licensed under CC BY 4.0.

animated_emoji's People

Contributors

roundedinfinity avatar hsbijarniya avatar fahidsarker avatar

Stargazers

Biel Carpi avatar bharat avatar  avatar  avatar Dirk Filter avatar st merlhin avatar  avatar louislam avatar leeyi avatar โ€Ž avatar Taehyun Park avatar Peter Chow avatar

Watchers

 avatar

animated_emoji's Issues

Upgrade lottie version from 2.7.0 to 3.0.0

As this package depends on lotties old version(2.7.0), can't use it.

In my project I'm using latest version of lottie, whenever trying to add this package(animated_emoji), version solving fails. The LOG is

Resolving dependencies...
Because demoapp depends on animated_emoji ^3.0.0 which depends on lottie ^2.7.0, lottie ^2.7.0 is required.
So, because demoapp depends on lottie ^3.0.0, version solving failed.

You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on lottie: flutter pub add lottie:^2.7.0
exit code 1

But downgrading lottie isn't possible in my cases, because lottie's latest version has my advantage over older version.

So, please upgrade lotties version in this package(animated_emoji)

Flutter web

Hi,
Thank you for this great package,
It works well on device platforms, but it says it supports also Flutter Web, but it seems it isn't the case.
please see attached the screenshot error I have on the chrome web simulator.
I have tried deploying my flutter webapp also and tried the app on a device's via weblink, and it doesn't work on the flutter webapp.

Can you check this package on Flutter web please?

The Error on Flutter Web
image

The same Code working perfectly on device platform (ios, android...)
image

regards,
Chris

Include svgs in package

It would be useful have access to the non-animated version of each emoji (e.g. the svgs in the https://github.com/googlefonts/noto-emoji repository) through this package. Using something like AnimatedEmoji(size: 40, AnimatedEmojis.mindBlown, source: AnimatedEmojiSource.asset, animate: false)) doesn't represent the emojis well in, for example, a dialog that allows the user to pick which animated emoji to use.

Flutter web some animation are failing

Hi,

I figure some issues using the library on flutter web:

sun glasses cool guy:

  assets:
    - packages/animated_emoji/lottie/sunglassesFace.json
    return AnimatedEmoji(
      AnimatedEmojis.sunglassesFace,
      size: 128,
      repeat: true,
    );

2023-08-16_17-20

rocket:

  assets:
    - packages/animated_emoji/lottie/rocket.json
    return AnimatedEmoji(
      AnimatedEmojis.rocket,
      size: 128,
      repeat: true,
    );

2023-08-16_17-23

The reported error is:

Flutter Web does not support the blend mode: BlendMode.clear
Another exception was thrown: PersistedScene: is in an unexpected state.
Another exception was thrown: PersistedScene: is in an unexpected state.
Another exception was thrown: PersistedScene: is in an unexpected state.
Another exception was thrown: PersistedScene: is in an unexpected state.

However clapDark animation works perfectly fine.

Do you have any idea about that ?

Thank you! (The lib looks really gorgeous it will give a lot of fresh to my app thank you for that!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.