flutter_dependency_doctor 0.1.2
flutter_dependency_doctor: ^0.1.2 copied to clipboard
An intelligent dependency health and optimization tool for Dart and Flutter projects.
🩺 Flutter Dependency Doctor #
A command-line tool built with Dart to help Flutter and Dart developers understand and maintain their project's dependencies.
It analyzes pubspec.yaml and pubspec.lock, builds a dependency graph, checks package health, detects outdated packages, and identifies packages requiring attention — all from your terminal.
🚀 Features #
| 📦 | Analyze direct and dev dependencies |
| 🌳 | Build and display dependency graphs |
| 🔗 | Inspect transitive dependencies |
| ❤️ | Package health scoring |
| ⚠️ | Detect packages requiring attention |
| 🔄 | Check versions against the latest release |
| 🗑️ | Detect critical/deprecated packages |
| 🖥️ | Clean, readable CLI output |
| 📋 | Multiple CLI commands |
| 🧩 | Built entirely in Dart |
📥 Installation #
Activate globally via pub:
dart pub global activate flutter_dependency_doctor
🛠️ Usage #
Run inside the root of any Flutter or Dart project (where pubspec.yaml lives):
dart run flutter_dependency_doctor
Or, if activated globally:
flutter_dependency_doctor
View all available flags:
dart run flutter_dependency_doctor --help
📊 Sample Output #
📦 Analyzing dependencies...
✅ http: up to date (1.5.0)
⚠️ provider: outdated (current 6.0.0, latest 6.1.2)
🌳 Dependency graph built successfully
🗑️ old_package: deprecated, consider removing
❤️ Overall project health: Good
🧭 Roadmap #
- ❌ JSON/HTML report export
- ❌ Auto-fix suggestions for outdated packages
- ❌ CI/CD integration mode
- ❌ Custom rule configuration
🤝 Contributing #
Contributions, issues, and feature requests are welcome! Feel free to check the issues page or open a pull request.
- Fork the repo
- Create your branch (
git checkout -b feature/my-feature) - Commit your changes
- Push and open a PR
⭐ Support #
If this tool helped you, consider giving it a star ⭐ on GitHub and a like 👍 on pub.dev — it helps a lot!
📄 License #
This project is licensed under the MIT License.
👤 Author #
Muhammad Ameer Hamza Flutter Developer | Cross-Platform Mobile Applications 🔗 Portfolio • GitHub