ytx_emotion 0.0.3 copy "ytx_emotion: ^0.0.3" to clipboard
ytx_emotion: ^0.0.3 copied to clipboard

ytx emotion package.

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them.

Features #

TODO: List what your package can do. Maybe include images, gifs, or videos.

Getting started #

TODO: List prerequisites and provide or point to information on how to start using the package.

Usage #

TODO: Include short and useful examples for package users. Add longer examples to /example folder.

      //获取gift网络地址
      String giftNetWorkUrl = EmotionHelper.getGiftEmotionUrlByUrl("picture://com.spero.vision/涨涨涨.gif");

      //根据特定字符获取表情库图片资源
      var emotion = emotionHelper.getEmotionByName("[牛年大吉]");
      var emotionPath;
      if(emotion != null) {
        if(emotion is ResEmotion) {
          emotionPath = emotion.res;
          Image.asset(emotionPath, package: YTX_EMOTION_PACKAGE, width: emotionWH, height: emotionWH,)
        } else if(emotion is NetworkEmotion) {
          emotionPath = emotion.url;
          Image.network(emotionPath, width: emotionWH, height: emotionWH,)
        }
      }
     

Additional information #

TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.

0
likes
110
pub points
0%
popularity

Publisher

unverified uploader

ytx emotion package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on ytx_emotion