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

A CLI tool to automatically remove ChatGPT/OpenAI icons and branding from Flutter Dart files.

๐Ÿงน icon_cleaner #

A Dart CLI tool to automatically remove ChatGPT/OpenAI icons and branding from your Flutter project files.

When you copy code from ChatGPT responses, it often includes icon references (SVG logos, Image assets, Icon widgets) that you need to manually clean up. This tool does it 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

Verbose โ€” see every removed line #

icon_cleaner --path lib/ --verbose

Full options #

icon_cleaner --help

๐ŸŽฏ What It Removes #

Pattern Example
SVG ChatGPT logos SvgPicture.asset('assets/chatgpt_logo.svg')
Image assets with gpt/openai Image.asset('assets/openai_icon.png')
ChatGPT icon widgets ChatGptIcon(size: 32)
OpenAI avatar widgets OpenAIAvatar()
Import statements import 'package:chatgpt_ui/icons.dart'
Image.network openai URLs Image.network('https://openai.com/logo.png')

๐Ÿ“‹ Example Output #

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘         ๐Ÿงน ICON CLEANER v1.0.0       โ•‘
โ•‘  Remove ChatGPT/OpenAI icons from    โ•‘
โ•‘  your Flutter project automatically  โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ” Scanning: lib/

๐Ÿงน lib/screens/chat_screen.dart โ€” removed 3 icon line(s)
   โŒ SvgPicture.asset('assets/chatgpt_logo.svg', width: 24)
   โŒ Image.asset('assets/openai_icon.png')
   โŒ ChatGptIcon(size: 32.0)

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ“Š RESULTS
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
๐Ÿ“ Files scanned   : 12
โœ๏ธ  Files modified  : 2
๐Ÿ—‘๏ธ  Lines removed   : 5

โœ… Done! All ChatGPT/OpenAI icons removed successfully.

๐Ÿ”ง Programmatic Usage #

You can also use this as a library in your own Dart code:

import 'package:icon_cleaner/icon_cleaner.dart';

void main() {
  // Clean a single file
  final result = cleanFile('lib/screens/chat_screen.dart');
  print('Removed ${result.linesRemoved} lines');

  // Clean entire directory
  final summary = cleanDirectory('lib/', verbose: true);
  print('Total removed: ${summary.totalLinesRemoved}');
}

๐Ÿ“„ License #

MIT License

3
likes
0
points
212
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to automatically remove ChatGPT/OpenAI icons and branding from Flutter Dart files.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

args, path

More

Packages that depend on icon_cleaner