All Projects → GatchHQ → dart-emoji

GatchHQ / dart-emoji

Licence: MIT License
A light-weight Emoji 📦 for Dart & Flutter with all up-to-date emojis written in pure Dart 😄 . Made from 💯% ☕ with ❤️!

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to dart-emoji

Getwidget
Most popular and easy to use open source UI library with 1000+ Widgets to build flutter app.
Stars: ✭ 2,555 (+15868.75%)
Mutual labels:  dart-library, dart-package
open route service
An encapsulation made around openrouteservice API for Dart and Flutter projects. Made for easy generation of Routes and Directions on Maps, Isochrones, Time-Distance Matrix, Pelias Geocoding, POIs, Elevation and routing Optimizations using their amazing API.
Stars: ✭ 20 (+25%)
Mutual labels:  dart-library, dart-package
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+693.75%)
Mutual labels:  dart-library, dart-package
dartexif
Dart package to decode Exif data from tiff, jpeg and heic files
Stars: ✭ 16 (+0%)
Mutual labels:  dart-library, dart-package
material-color-utilities
Color libraries for Material You
Stars: ✭ 605 (+3681.25%)
Mutual labels:  dart-library, dart-package
palace
server side framework for dart inspired by express.js
Stars: ✭ 32 (+100%)
Mutual labels:  dart-library, dart-package
l
Cross-platform html/io [L]ogger with simple API.
Stars: ✭ 26 (+62.5%)
Mutual labels:  dart-library, dart-package
validated
Ultimate dart / flutter string validators 💃💃
Stars: ✭ 21 (+31.25%)
Mutual labels:  dart-library, dart-package
stash
Key-value store abstraction with plain and cache driven semantics and a pluggable backend architecture.
Stars: ✭ 71 (+343.75%)
Mutual labels:  dart-library, dart-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+1381.25%)
Mutual labels:  dart-library, dart-package
crypton
A simple Dart library for asymmetric encryption and digital signatures
Stars: ✭ 25 (+56.25%)
Mutual labels:  dart-library, dart-package
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+887.5%)
Mutual labels:  dart-library, dart-package
credit card validator
A Dart package that validates credit card numbers, expiration dates, and security codes (CVV/CVC) based on the type of credit card
Stars: ✭ 19 (+18.75%)
Mutual labels:  dart-library, dart-package
pubspec-version
A CLI tool to get/set/bump the `version` key in pubspec.yaml.
Stars: ✭ 25 (+56.25%)
Mutual labels:  dart-library
printer
A fancy logger yet lightweight, and configurable. 🖨
Stars: ✭ 65 (+306.25%)
Mutual labels:  emoji
emoji-233333
😂 2333333
Stars: ✭ 33 (+106.25%)
Mutual labels:  emoji
emoji-extractor-plus
Extract emojis from Apple font in PNG format
Stars: ✭ 42 (+162.5%)
Mutual labels:  emoji
umoji
😄 A lib convert emoji unicode to Surrogate pairs
Stars: ✭ 68 (+325%)
Mutual labels:  emoji
contour
Modern C++ Terminal Emulator
Stars: ✭ 761 (+4656.25%)
Mutual labels:  emoji
EasyEmoji
Help developers to quickly realize the expression of the keyboard
Stars: ✭ 24 (+50%)
Mutual labels:  emoji

dart_emoji

👉 A light-weight Emoji 📦 for Dart & Flutter with all up-to-date emojis written in pure Dart 😄 . Made from 💯% with ❤️!

This is a fork of flutter_emoji, which is inspired by the node-emoji package. The reason for the fork is better maintaining and adding further features, such as EmojiUtil.hasOnlyEmojis().

dart_emoji is even used in production for our app Gatch. You can get Gatch for iOS and Android.

API Usage

First, import the package:

import 'package:dart_emoji/dart_emoji.dart';

There are two main classes you need to know to handle Emoji text: Emoji and EmojiParser.

Basically, you need to initialize an instance of EmojiParser.

var parser = EmojiParser();
var coffee = Emoji('coffee', '☕');
var heart  = Emoji('heart', '❤️');

// Get emoji info
var emojiHeart = parser.info('heart');
print(emojiHeart); '{name: heart, full: :heart:, code: ❤️}'

// Check emoji equality
heart == emojiHeart;  // returns: true
heart == emojiCoffee; // returns: false

// Get emoji by name or code
parser.get('coffee');   // returns: Emoji{name="coffee", full=":coffee:", code="☕"}
parser.get(':coffee:'); // returns: Emoji{name="coffee", full=":coffee:", code="☕"}

parser.hasName('coffee'); // returns: true
parser.getName('coffee'); // returns: Emoji{name="coffee", full=":coffee:", code="☕"}

parser.hasEmoji('❤️'); // returns: true
parser.getEmoji('❤️'); // returns: Emoji{name="heart", full=":heart:", code="❤️"}

parser.emojify('I :heart: :coffee:'); // returns: 'I ❤️ ☕'
parser.unemojify('I ❤️ ☕'); // returns: 'I :heart: :coffee:'

// Check if text contains only emojis
EmojiUtil.hasOnlyEmojis("👋"); // returns true
EmojiUtil.hasOnlyEmojis("👋 Hello"); // returns false

All methods will return Emoji.None if emoji is not found.

parser.get('does_not_exist_emoji_name'); // returns: Emoji.None

License

MIT @ 2021 Gatch GmbH.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].