ytx_emotion

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

ytx emotion

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

copied to clipboard
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.