emojis 0.8.0 copy "emojis: ^0.8.0" to clipboard
emojis: ^0.8.0 copied to clipboard

outdated

Emojis for Dart! This package contain all unicode 12.1 emojis (2020)!

example/main.dart

import 'package:emojis/emojis.dart';
import 'package:emojis/emoji.dart';

main() {
  print('I ${Emojis.greenHeart} ${Emojis.directHit}'); // I ๐Ÿ’š ๐ŸŽฏ

  Emoji smile = Emoji.byName('Grinning Face'); // get a emoji by its name
  print(smile.name);
// 'Grinning Face' name of emoji
  print(smile.char);
// '๐Ÿ˜€' character of emoji
  print(smile.emojiGroup);
// EmojiGroup.smileysEmotion group of emoji
  print(smile.emojiSubgroup);
// EmojiSubgroup.faceSmiling sub group of emoji

  var womanBlond = Emoji.byChar(Emojis.womanBlondHair); // get a emoji by its character ๐Ÿ‘ฑโ€โ™€๏ธ

  var blondyBlackLady = womanBlond.newSkin(fitzpatrick.dark); // get blondy in black
  print(blondyBlackLady); // ๐Ÿ‘ฑ๐Ÿฟโ€โ™€๏ธ

  var emList = Emoji.all(); // list of all Emojis

  print(Emoji.disassemble(Emojis.mechanic)); // ['๐Ÿ”ง', '๐Ÿง‘']

  print(Emoji.assemble([Emojis.person, Emojis.laptop])); // ๐Ÿง‘โ€๐Ÿ’ป

  print(Emoji.modify('๐Ÿ‘', fitzpatrick.light)); // ๐Ÿ‘๐Ÿป

  print(Emoji.stabilize(Emojis.womanPoliceOfficerMediumDarkSkinTone)); //๐Ÿ‘ฎ๐Ÿพโ€โ™€๏ธ => ๐Ÿ‘ฎโ€โ™€๏ธ Woman Police Officer with no special skin tone
  print(Emoji.stabilize(Emojis.womanPoliceOfficerMediumDarkSkinTone, skin: false, gender: true)); //๐Ÿ‘ฎ๐Ÿพโ€โ™€๏ธ => ๐Ÿ‘ฎ no gender! still medium dark

  Emoji.byKeyword('love'); // returns list of lovely emojis :)
  // (๐Ÿฅฐ, ๐Ÿ˜, ๐Ÿ˜˜, ๐Ÿ˜š, ๐Ÿ˜™, ๐Ÿค—, ๐Ÿ˜ป, ๐Ÿ˜ฝ, ๐Ÿ’‹, ๐Ÿ’Œ, ๐Ÿ’˜, ๐Ÿ’, ๐Ÿ’–, ๐Ÿ’—, ๐Ÿ’“, ๐Ÿ’ž, ๐Ÿ’•, ..., ๐Ÿ’„, โ™พ)

  print(Emoji.byGroup(EmojiGroup.foodDrink)); // returns emojis in Food and Drink group
  // (๐Ÿ‡, ๐Ÿˆ, ๐Ÿ‰, ๐ŸŠ, ๐Ÿ‹, ๐ŸŒ, ๐Ÿ, ๐Ÿฅญ, ๐ŸŽ, ๐Ÿ, ๐Ÿ, ๐Ÿ‘, ๐Ÿ’, ๐Ÿ“, ๐Ÿฅ, ๐Ÿ…, ๐Ÿฅฅ, ๐Ÿฅ‘, ...)

  print(Emoji.bySubgroup(EmojiSubgroup.money)); // returns emojis in Money subgroup
  // (๐Ÿ’ฐ, ๐Ÿ’ด, ๐Ÿ’ต, ๐Ÿ’ถ, ๐Ÿ’ท, ๐Ÿ’ธ, ๐Ÿ’ณ, ๐Ÿงพ, ๐Ÿ’น)
}
106
likes
0
pub points
95%
popularity

Publisher

unverified uploader

Emojis for Dart! This package contain all unicode 12.1 emojis (2020)!

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on emojis