Search packages, repositories and app categories

Package detailsv1.0.5

pubspec_dependency_sorter

helps sort flutter,dart pubspec.yaml dependecies alphabetically.

AndroidiOSmacOSWindowsLinux
30-day downloads
71.6K
Likes
43
Pub points
115

Install package

flutter pub add pubspec_dependency_sorter

Package Overview

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

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

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Package helps to sort the flutter/dart packages and plugins alphabetically, This makes it easier when managing too many packages and when working with teams

Features

  • sort dependencies
  • prevent dependecy conflicts
  • clean up the pubspec.yaml file

Getting started

Install flutter or dart sdk then depend on the package.

dev_dependencies:
  pubspec_dependency_sorter: ^1.0.4

Usage

To use the package run in your flutter/dart app root directory

   dart run pubspec_dependency_sorter

if your pubspec.yam is located somewhere else use the following command by passing the path of the directory where the pubspec.yaml file is located.

  dart run pubspec_dependency_sorter PATH-TO-YOUR-DIRECTORY

sample output

dependency_sorter sample output

Additional information

Feel free to add features,improvemets and fix bugs then create a PR.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

Rankings