FLUTTER ECOSYSTEM

pubspec_dependency_sorter

helps sort flutter,dart pubspec.yaml dependecies alphabetically.

Latest version
1.0.5
30-day downloads
63K
Likes
43
Pub points
115

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

A developer tool for Flutter and Dart projects that automatically sorts dependencies in the pubspec.yaml file alphabetically. It ensures a clean, consistent, and readable dependency list, improving maintainability and reducing merge conflicts. The tool is designed to be simple and efficient, integrating seamlessly into development workflows via a command-line interface. It supports all major platforms including Android, iOS, macOS, Windows, and Linux.

Use cases

  • Maintaining clean pubspec.yaml files
  • Reducing merge conflicts in team environments
  • Automating dependency organization
  • Improving readability of project dependencies
  • Streamlining code review processes

Key features

  • Alphabetical sorting of dependencies
  • Command-line integration
  • Supports all Flutter platforms
  • Simple and lightweight
  • Preserves existing structure and comments

Suitable for

  • Flutter developers
  • Team-based projects
  • CI/CD pipelines
  • Code quality automation
  • Projects with frequent dependency updates

Considerations

  • Does not validate dependency syntax
  • Requires manual execution unless integrated into scripts
  • May conflict with other formatting tools
  • No configuration options available
  • Only affects pubspec.yaml file
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add pubspec_dependency_sorter

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package