A development tool for automatically sorting dependencies and dev_dependencies in pubspec.yaml files. This package ensures consistent and clean dependency ordering, improving readability and maintainability of Flutter projects. It integrates seamlessly with the Flutter CLI, allowing developers to sort dependencies with a simple command. Ideal for teams enforcing code style standards or maintaining large-scale applications where dependency management is critical.
Use cases
- Maintaining clean pubspec.yaml files
- Enforcing consistent dependency order in team projects
- Automating dependency formatting during CI/CD
- Improving readability of dependency lists
- Simplifying merge conflict resolution
Key features
- Automatic sorting of dependencies
- Simple CLI integration
- Supports both dependencies and dev_dependencies
- Preserves existing structure and comments
- Compatible with all major platforms
Suitable for
- Flutter developers
- Team-based project maintainers
- CI/CD pipeline integrators
- Code quality advocates
- Projects with frequent dependency updates
Considerations
- May require manual review after sorting if custom formatting is used
- Not intended for runtime use
- Does not validate dependency versions
- Only affects pubspec.yaml file structure
- Requires Dart SDK 2.15 or higher