패키지, 저장소 및 앱 카테고리 검색

패키지 상세v3.2.0

emojis

Dart용 이모지! 이 패키지는 모든 유니코드 13.0 이모지(2020)를 포함합니다!

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
1.9만
좋아요
110
Pub 점수
140

패키지 설치

flutter pub add emojis

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

이모지 패키지는 Dart 애플리케이션에서 유니코드 13.0 이모지를 포괄적으로 지원합니다. 2020년에 출시된 모든 표준 이모지를 포함하여 개발자가 여러 플랫폼에서 쉽게 이모지를 통합하고 표시할 수 있도록 합니다. 풍부한 텍스트 형식, 메시징 인터페이스 또는 표현력 있는 사용자 인터페이스가 필요한 앱에 적합합니다. 간단한 가져오기만으로 개발자는 이모지 데이터에 접근하여 문자열, 위젯 또는 사용자 정의 렌더링 로직에서 사용할 수 있습니다. 가볍고 잘 유지 관리되며, 소스 코드는 GitHub에 공개되어 있어 투명성과 기여를 보장합니다.

사용 사례

  • 메시징 앱
  • 사용자 인터페이스 개선
  • 리치 텍스트 콘텐츠
  • 소셜 미디어 기능
  • 게임화 요소

주요 기능

  • 완전한 Unicode 13.0 이모지 지원
  • 크로스 플랫폼 호환성
  • pub를 통한 간편한 통합
  • 소스 코드가 공개적으로 사용 가능
  • 경량이고 빠름

적합한 대상

  • 모바일 앱 개발자
  • 웹 애플리케이션 제작자
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트