Pubspec dependency inspector
Pubspec dependency inspector is a VS Code extension for managing and updating dependencies in the Flutter framework. It provides a convenient way to check for newer versions of dependencies listed in the pubspec.yaml
file and offers quick fixes to update them.
Features
- Dependency Update: View a list of outdated dependencies in the
pubspec.yaml
file and easily update them to their latest versions using the command Analyzes dependencies
.
- Quick Fix: Receive code actions (quick fixes) for each outdated dependency, allowing you to update them with a single click to the latest version.
- Update all dependencies: Update all outdated dependencies at once using the command
Update all dependencies
.
- Version Comparison: Compare the current version in the
pubspec.yaml
file with the latest version available on pub.dev to determine if an update is needed.
Installation
- Launch Visual Studio Code.
- Go to the Extensions view by clicking on the square icon in the left sidebar or by pressing
Ctrl+Shift+X
.
- Search for "Pubspec dependency inspector" in the Marketplace search bar.
- Click on the "Install" button for the Extension Name extension.
- Once installed, the extension will be activated automatically.
Usage
- Open a Flutter project in Visual Studio Code.
- Open the
pubspec.yaml
file.
- The extension will automatically analyze the file when saved and detect outdated dependencies. If not you can use the command
Analyzes dependencies
.
- Diagnostics will be displayed in the Problems view, indicating which dependencies require updates.
- Click on a diagnostic to see the available quick fixes.
- Choose the desired quick fix to update the dependency in the
pubspec.yaml
file.
- Save the file to apply the changes.
https://github.com/berkkan22/pubspec-dependency-inspector/assets/46936985/ee88c55e-40b2-476c-9d8d-a0b7a34c5316
Feedback and Support
If you encounter any issues or have suggestions for improvement, please feel free to raise an issue in the GitHub repository or reach out to our support team at berkkan22@gmail.com.
Future Plans and Ideas
As I continue to improve and enhance the functionality of Pubspec dependency inspector, I have several exciting ideas and plans in mind. Here are some of the features I want considering for future updates:
- Dependency Information on Hover
- Integrated Browser View for Dependency Info
- Extension Search and Pubspec Integration
- Add setting page
Contribution
Contributions are welcome! If you have any ideas, improvements, or bug fixes, please submit a pull request to the GitHub repository.
License
This extension is licensed under the MIT License.
Enjoy! I hope this extension enhances your Flutter development experience. If you find it useful, please consider leaving a rating and review in the Visual Studio Code Marketplace.
Thank you for your support and happy coding!