FLUTTER ECOSYSTEM

n4ze3m/remove-emoji

Dart 或 Flutter 套件精確替換/移除文字中的表情符號

remove-emoji 專案封面
Stars
9
Forks
5
最近推送(UTC)
2023年8月21日
專案狀態
未封存
Muhammed Nazeem GitHub avatar
GITHUB User

Muhammed Nazeem ↗

404

@BuckthornDevInternal Server Error
語言Dart

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • pedantic開發依賴^1.11.0
  • test開發依賴^1.17.3

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

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.