2023-08-25
Flutter Unused Asset Cleaner
#Python#CLI#Flutter#Shell
Flutter Unused Asset Cleaner CLI
This is a developer-focused CLI utility designed to scan Flutter configurations (pubspec.yaml) and directories. It cross-references asset declarations with files referenced in the .dart codebase, finds dead asset weights, and safely removes them.
🌟 Key Features
- ✏️AST Parsing & Code Analysis: Safely scans all
.dartsource code directories for hardcoded string assets. - ✏️Pubspec Syncing: Automatically edits
pubspec.yamldeclarations to remove entries for deleted assets. - ✏️Dry Run Support: Review list of flagged assets and size optimization summaries before executing deletes.
- ✏️Cross-Platform CLI: Compiles and runs locally on macOS, Linux, and Windows terminals.