icon_cleaner 1.0.5 copy "icon_cleaner: ^1.0.5" to clipboard
icon_cleaner: ^1.0.5 copied to clipboard

Removes emoji characters from Flutter Dart files.

๐Ÿงน icon_cleaner #

A Dart CLI tool to automatically remove emoji characters (โŒ โœ… ๐Ÿงน and all non-ASCII symbols) from your Flutter .dart files.

When you copy code from ChatGPT responses, it often includes emoji characters in print(), log(), and Text() calls that cause issues with App Store submissions and code reviews. This tool removes them automatically in one command.


๐Ÿ“ฆ Install #

dart pub global activate icon_cleaner

๐Ÿš€ Usage #

Basic โ€” clean your lib folder #

icon_cleaner --path lib/

Preview first (dry run โ€” no changes made) #

icon_cleaner --path lib/ --dry-run

Full options #

icon_cleaner --help

๐ŸŽฏ What It Removes #

All non-ASCII emoji characters from .dart files, for example:

Before After
print('โŒ Error occurred') print(' Error occurred')
print('โœ… Success') print(' Success')
log('๐Ÿงน Cleaning done') log(' Cleaning done')
Text('๐Ÿ“Š Results') Text(' Results')

๐Ÿ“‹ Example Output #

icon_cleaner --path lib/

Files scanned : 24
Files cleaned : 6
Done! All emoji characters removed successfully.

๐Ÿ”ง Programmatic Usage #

Use as a library in your own Dart code:

import 'package:icon_cleaner/icon_cleaner.dart';

void main() {
  // Remove emojis from a single string
  final clean = stripEmojis('Hello โŒ World โœ…');
  print(clean); // Hello  World 

  // Clean a single file
  cleanFile('lib/screens/chat_screen.dart');

  // Clean entire directory
  cleanDirectory('lib/');
}

๐Ÿ“„ License #

MIT License

3
likes
0
points
212
downloads

Publisher

unverified uploader

Weekly Downloads

Removes emoji characters from Flutter Dart files.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, path

More

Packages that depend on icon_cleaner