A tool to analyze unused dependencies and files in Flutter projects.
pip install git+https://github.com/matan-h/flutter_unused.gitTo analyze a Flutter project, run the following command:
flutter_unused <path_to_your_flutter_project>This will output a report of unused dependencies and files.
-o,--output <output_path>: Specify the path to save the report to a file.--ignore <glob_pattern>: Glob pattern to ignore files. This option can be used multiple times.
flutter_unused ./my_flutter_project --output report.txtThis will analyze the Flutter project located at ./my_flutter_project and save the report to report.txt.
Contributions are welcome! Please feel free to submit a pull request.
Most of the code was written by LLM, specifically airder/gemini2.0.
This project is licensed under the MIT License.