flutter_emoji 1.0.0 copy "flutter_emoji: ^1.0.0" to clipboard
flutter_emoji: ^1.0.0 copied to clipboard

outdated

Emoji for Flutter app

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:emoji/emoji.dart';

The API is straight-forward:

var emoji = Emoji();

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.