flutter-emoji
flutter-emoji copied to clipboard
Please provide a list of supported emojis with their code and images
Please provide a list of supported emojis with their code and images in description. Thanks a lot.
https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json
how can i use it ?
@ebrahim2222 I used like this. String chipEmoji(dynamic cat) { var parser = EmojiParser(); switch (cat.nombre.toLowerCase()) { case "música": return parser.get('notes').code; case "online": return parser.get('globe_with_meridians').code; case "vida nocturna": return parser.get('dancer').code; case "vida sana": return parser.get('green_heart').code; case "ciudad verde": return parser.get('deciduous_tree').code; case "comercio": return parser.get('shopping_bags').code; case "cultura": return parser.get('performing_arts').code; case "gastronomía": return parser.get('sushi').code; case "aire libre": return parser.get('runner').code; case "arte": return parser.get('art').code; case "comunidad": return parser.get('house_buildings').code; case "chocolates y dulces": return parser.get('chocolate_bar').code; case "productos gourmet": return parser.get('pie').code; case "pescados y mariscos": return parser.get('fish').code; case "flores y plantas": return parser.get('bouquet').code; case "mascotas": return parser.get('dog').code; case "carnes": return parser.get('meat_on_bone').code; case "panadería y pastelería": return parser.get('bread').code; case "joyería y accesorios": return parser.get('ring').code; case "belleza y cosmética": return parser.get('nail_care').code; case "frutas y verduras": return parser.get('avocado').code; case "helados": return parser.get('icecream').code; case "jardín": return parser.get('sunflower').code; case "juegos y niños": return parser.get('teddy_bear').code; case "frutos secos": return parser.get('peanuts').code; case "productos lácteos": return parser.get('cheese_wedge').code; case "vinos y licores": return parser.get('wine_glass').code; case "regalos": return parser.get('gift_heart').code; case "té y café": return parser.get('coffee').code; case "deportes y outdoor": return parser.get('camping').code; default: return parser.get('coffee').code; }
But, i finally coordinate with the backend, and I called the emiji from there. Like this:
String chipEmoji(dynamic cat) { var parser = EmojiParser(); return parser.get(cat.emoji).code;
CircleAvatar(
child: Text(chipEmoji(cat)),
backgroundColor:
Color(int.parse("FF${cat.segundoColor}", radix: 16)).withOpacity(1)
),