flutter_packages_remover 0.0.2 copy "flutter_packages_remover: ^0.0.2" to clipboard
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 #

  1. Clone the repository:

    git clone https://github.com/ahmedelmwafy/flutter_packages_remover.git
    cd flutter_packages_remover
    
  2. 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.

10
likes
130
points
289
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool to find and remove unused packages from pubspec.yaml.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, args, path, yaml, yaml_edit

More

Packages that depend on flutter_packages_remover