Pub Manager is a Visual Studio Code extension that helps you manage packages in your Dart and Flutter projects. With this extension, you can view package information, check for updates, and easily update your pubspec.yaml file.
Features
Display a list of packages from the pubspec.yaml file in a webview panel.
View package details such as the current version, latest version, and published date.
Check for available updates for each package and perform updates.
Automatically update the pubspec.yaml file and run flutter pub get to apply package updates.
Add or remove a package directly from the panel.
Run static analysis on the project to find unused packages and files and get the files count and lines of code count.
Show a summary of licenses for the packages used in the project.
Sort the table by packages with available updates.
Display git history for each package, showing who and when added/updated the package.
Display dev dependencies in the table.
Show the number of packages that need to be updated and the total number of packages.
Clicking on a package row will expand it, showing more information about it.
Installation
Launch Visual Studio Code.
Open the Extensions view by clicking on the square icon in the sidebar or by pressing Ctrl+Shift+X.
Search for "Pub Manager" and click on the "Install" button.
Once the installation is complete, click on the "Reload" button to activate the extension.
Usage
Open a Dart or Flutter project that contains a pubspec.yaml file.
In the VS Code toolbar, click on the Pub Manager icon to open the panel. or run the "Pub Manager: Show package list" command from the command palette.
The package list will be displayed in a webview panel, showing the package name, current version, latest version, published date, licenses, update availability, and an update button.
Click on the update button for a package to update its version in the pubspec.yaml file.
After the update, the pubspec.yaml file will be saved, and flutter pub get will be automatically run to apply the changes.
Multi-project Support
Pub Manager supports multi-project workspaces. If you have multiple Dart or Flutter projects in your workspace, open the pubspec.yaml file of that project and run the "Pub Manager: Show package list" command from the command palette. The extension will open the packages in that project.
Contributing
We welcome contributions! To contribute to Pub Manager, please follow these steps:
Fork the repository.
Clone the forked repository to your local machine.
Install dependencies using npm install or yarn install.
Make your changes and test them thoroughly.
Create a pull request, explaining the purpose of your changes.