flutter_emoji 1.0.1 flutter_emoji: ^1.0.1 copied to clipboard
👉 A light-weight Emoji 📦 for Flutter with all up-to-date emojis 😄. Made from 💯% ☕ with ❤️!
flutter_emoji #
Emoji for Flutter app inspired from the node-emoji package.
Installation #
Add this into pubspec.yaml
dependencies:
flutter_emoji: ">= 1.0.0"
Usage #
First, import the package:
import 'package:flutter_emoji/flutter_emoji.dart';
The API is straight-forward:
var emoji = Emoji();
emoji.get('coffee'); // returns: '☕'
emoji.get(':coffee:'); // returns: '☕'
emoji.hasName('coffee'); // returns: true
emoji.getName('coffee'); // returns: '☕'
emoji.hasEmoji('❤️'); // returns: true
emoji.getEmoji('❤️'); // returns: 'heart'
emoji.emojify('I :heart: :coffee:'); // returns: 'I ❤️ ☕'
License #
MIT @ 2019 Pete Houston.