flutter_packages_remover 0.0.2
flutter_packages_remover: ^0.0.2 copied to clipboard
A command-line tool to find and remove unused packages from pubspec.yaml.
flutter_packages_remover #
A command-line tool to help identify and interactively remove unused packages from your Dart/Flutter project's pubspec.yaml
.
โจ Features #
- ๐ Detect unused packages by scanning Dart/Flutter files for import usage.
- ๐งน Interactive cleanup: Choose which unused packages to keep or remove via an intuitive selection interface.
- ๐พ Automatic backup of your
pubspec.yaml
before making any changes.
๐ Getting Started #
๐ฆ Installation #
-
Clone the repository:
git clone https://github.com/ahmedelmwafy/flutter_packages_remover.git cd flutter_packages_remover
-
Optionally, activate the tool globally:
dart pub global activate --source path .
๐ Usage #
Navigate to the root directory of the Dart/Flutter project containing the pubspec.yaml
you want to clean.
Interactively remove unused packages #
To remove unused packages interactively, run:
flutter_packages_remover --remove
The tool will display unused packages with corresponding numbers and prompt you to select the ones you wish to keep.