パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.2.0

emojis

Dart用の絵文字!このパッケージには、すべてのUnicode 13.0絵文字(2020年)が含まれています!

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
1.9万
いいね数
110
Pub ポイント
140

パッケージをインストール

flutter pub add emojis

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

emojiパッケージは、DartアプリケーションにおけるUnicode 13.0の絵文字を包括的にサポートしています。2020年にリリースされたすべての標準的な絵文字を含んでおり、開発者が複数のプラットフォームで簡単に絵文字を統合して表示できるようにします。豊富なテキストフォーマット、メッセージインターフェース、または表現力のあるユーザーインターフェースを必要とするアプリに最適です。簡単なインポートにより、開発者は絵文字データにアクセスし、文字列やウィジェット、カスタムレンダリングロジックで利用できます。軽量でメンテナンスが行き届いており、GitHub上でソースコードを公開しており、透明性と貢献を促進しています。

用途

  • メッセージングアプリ
  • ユーザーインターフェースの向上
  • リッチテキストコンテンツ
  • ソーシャルメディア機能
  • ゲーム化要素

主な機能

  • 完全な Unicode 13.0 エモジーサポート
  • クロスプラットフォーム互換性
  • pub を通じた簡単な統合
  • ソースコードは公開されています
  • 軽量で高速

適している対象

  • モバイルアプリ開発者
  • Webアプリケーション作成者
  • UI/UXデザイナー
  • 教育アプリ
  • インタラクティブなチャットインターフェース

注意事項

  • 絵文字のスキントーンやバリエーションは含まれません
  • 組み込みの絵文字ピッカーなし
  • 静的絵文字データに限定
  • 絵文字のレンダリングを手動で処理する必要があります
  • ローカリゼーションのサポートなし

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Emojis

🔥 Emoji for Dart 🔥 Over 3900 Emojis
This 📦 contain all 🆕 Unicode 17.0 Emojis (2️⃣0️⃣2️⃣5️⃣) 💪 supports null safety 💪

🛠️ Usage

0️⃣ Import

import 'package:emojis/emojis.dart'; // to use Emoji collection
import 'package:emojis/emoji.dart'; // to use Emoji utilities

1️⃣ Use

print('I ${Emojis.greenHeart} ${Emojis.bullseye}'); // I 💚 🎯

Emoji? smile = Emoji.byName('hi'); // get a emoji by its name
if (smile != null) {
    print('Emoji name      : ${smile.name}');
    // Emoji name is Grinning Face
    print('Emoji character : ${smile.char}');
    // Emoji character is '😀'
    print('Emoji category  : ${smile.emojiGroup}');
    // EmojiGroup.smileysEmotion group of emoji
    print('Emoji sub-group : ${smile.emojiSubgroup}');
    // EmojiSubgroup.faceSmiling sub group of emoji
} else {
  print('Emoji not found!');
}

// get an emoji by its character 👱‍♀️
Emoji? womanBlond = Emoji.byChar(Emojis.womanBlondHair)!;
print(womanBlond);

// make blondy in black
Emoji blondyBlackLady = womanBlond.newSkin(fitzpatrick.dark);
print(blondyBlackLady); // 👱🏿‍♀️

List<Emoji> emList = Emoji.all(); // list of all Emojis
print(emList[2]); // second emoji in list

// disassemble an emoji
List<String> disassembled = Emoji.disassemble(Emojis.mechanic);
print(disassembled); // ['🔧', '🧑']

// assemble some emojis
String assembled = Emoji.assemble([Emojis.man, Emojis.man, Emojis.girl, Emojis.boy]);
print(assembled); // 👨‍👨‍👧‍👦️

String blackThumbsUp = '👍';
// modify skin tone of emoji
String witheThumbsUp = Emoji.modify(blackThumbsUp, fitzpatrick.light);
print(witheThumbsUp); // 👍🏻

// A Woman Police Officer With Brown Skin
String femaleCop =  Emojis.womanPoliceOfficerMediumDarkSkinTone;
// Make that woman to just a Woman Police Officer with no special skin color
String newFemaleCop = Emoji.stabilize(femaleCop);
print('$femaleCop => $newFemaleCop'); //👮🏾‍♀️ => 👮‍♀️

// gender-neutral
String aCop = Emoji.stabilize(femaleCop, skin: false, gender: true);
print('$femaleCop => $aCop'); //👮🏾‍♀️=> 👮 no gender! still medium dark

final loveEmojis = Emoji.byKeyword('love'); // returns list of lovely emojis :)
print(loveEmojis);
// (🥰, 😍, 😘, 😚, 😙, 🤗, 😻, 😽, 💋, 💌, 💘, 💝, 💖, 💗, 💓, 💞, 💕, ..., 💄, ♾)

final foodCategory = Emoji.byGroup(EmojiGroup.foodDrink); // returns emojis in Food and Drink group
print(foodCategory);
// (🍇, 🍈, 🍉, 🍊, 🍋, 🍌, 🍍, 🥭, 🍎, 🍏, 🍐, 🍑, 🍒, 🍓, 🥝, 🍅, 🥥, 🥑, ...)

Iterable<Emoji> moneySubgroupEmojis = Emoji.bySubgroup(EmojiSubgroup.money); // returns emojis in Money subgroup
print(moneySubgroupEmojis);
// (💰, 💴, 💵, 💶, 💷, 💸, 💳, 🧾, 💹)

🚀 Features

  • [x] All Present unicode emojis 💯.
  • [x] Get Emojis by Name, Category, Keyword & ...
  • [x] Modify Emoji with 🆕 skin color ( 🏻 🏼 🏽 🏾 🏿 ).
  • [x] Stabilize Emoji (No Skin color, No Gender).
  • [x] Assemble Emojis (👩 + ❤ + 👩 = 👩‍❤️‍👩 ).
  • [x] Disassemble Emojis (👨‍🔧 = 🔧 + 🧑).
  • [x] Emoji Regex Pattern.
  • [ ] Emojize and Demojize text.
  • [ ] Find emojis in text.
  • [ ] Replace emojis in text.

📄 License

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト