Search packages, repositories and app categories

Package detailsv0.0.10

remove_emoji

Dart and flutter package accurately replace/remove emojis in text

AndroidiOSWebmacOSWindowsLinux
30-day downloads
11.3K
Likes
41
Pub points
160

Install package

flutter pub add remove_emoji

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The remove_emoji package is a Dart and Flutter utility designed to accurately detect, replace, or remove emojis from text across multiple platforms. It supports a wide range of emoji characters, including complex ones like flags and skin-tone modifiers, ensuring reliable text processing. Ideal for cleaning user input or preparing text for analysis, it integrates seamlessly with Flutter apps on Android, iOS, Web, macOS, Windows, and Linux. The package is lightweight and efficient, making it suitable for real-time text manipulation.

Use cases

  • Cleaning user-generated content
  • Preparing text for NLP processing
  • Filtering emojis in chat applications
  • Data sanitization before storage
  • Removing emoticons from form inputs

Key features

  • Accurate emoji detection
  • Support for complex emoji sequences
  • Cross-platform compatibility
  • Simple API integration
  • Configurable replacement or removal

Suitable for

  • Text preprocessing pipelines
  • User input validation
  • Content moderation tools
  • Internationalized app development
  • Apps requiring clean text output

Considerations

  • May not handle rare or newly added emojis immediately
  • Performance impact on very large text blocks
  • Requires manual updates for new Unicode emoji standards

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Remove Emoji 😢

Dart package accurately replace/remove emojis in text. Remove-emoji heavily inspired by NodeJS package emoji-regex.

Usage

A simple usage example:

import 'package:remove_emoji/remove_emoji.dart';

void main() {
  var word = '🤣h😌e🙄l😪l😓o😳🤔👨‍🦰🤶🏿 🧝‍♂️🍝🥘🌯🍦🥂🥂🎂🍰🧁🍨🍧😁w🤷‍♂️o😎r🤪l🤦‍♂️d🐸🤑😆😖🎉🍾🤟🤩😢🐭😡😍📧😄😔😇🧐😈🙁🤓🙂🥱';
  var remove = RemoveEmoji();

  //  with trim
  print(remove.clean(word));

  // without trim
  print(remove.clean(word,'', false));

  // or use extension 🤓

  // with trim
  print(word.removEmoji);
 // without trim
 print(word.removEmojiNoTrim);
}

output

hello world
hello world

Contribution

Happy 😍 to recieve or provide contributions related to this package.

Features and bugs

Please file feature requests and bugs at the issue tracker.

Categories

Source repository

Projects using this package