Skip to content
pubscout

shared_versions

2.0.0, released 6 years ago by an unverified publisher

A CLI tool to share and synchronize versions for multiple packages in Flutter.

$ flutter pub add shared_versions
Source repository

What it does

shared_versions matches and shares package dependency versions across multiple packages in Flutter using a shared_versions.yaml file. It can be run as a command-line tool to manage consistent dependency versions.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to synchronize dependency versions across multiple packages in a Flutter project.
  • You want to maintain a centralized version configuration file for your packages.

Skip it when

  • You only have a single package and do not need to share versions across multiple packages.
  • You prefer built-in workspace dependency management features without external CLI tools.

Strengths

  • Simplifies version synchronization across multiple packages.
  • Supports custom paths for the versions configuration file.

Weaknesses

  • Relies on an external CLI command execution.
  • Limited documentation on advanced configurations.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

Add shared_versions to dev_dependencies in pubspec.yaml and create a shared_versions.yaml file in the root of the package.

dev_dependencies:
    shared_versions: ^1.0.0

# Run via:
flutter pub run shared_versions

Alternatives

Packages that do the same job and could replace shared_versions.

  • dswitch

    CLI tool to rapidly switch between channels and versions of standalone Dart.

  • fvm

    CLI to manage Flutter SDK versions per project

  • catcher_2

    Plugin for automatic error catching and handling in Flutter apps.

  • webdev

    A command-line tool for developing and deploying web applications with Dart.

Works with

Packages commonly used together with shared_versions: ones it builds on, ones built on it, and its own family.