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.
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_versionsAlternatives
Packages that do the same job and could replace shared_versions.
- dswitch
CLI tool to rapidly switch between channels and versions of standalone Dart.
69Compare - fvm
CLI to manage Flutter SDK versions per project
87Compare - catcher_2
Plugin for automatic error catching and handling in Flutter apps.
87Compare - webdev
A command-line tool for developing and deploying web applications with Dart.
85Compare
Works with
Packages commonly used together with shared_versions: ones it builds on, ones built on it, and its own family.
- yamlshared_versions depends on itA Dart library for parsing YAML documents into Dart data structures.
- argsshared_versions depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- ansicolorshared_versions depends on itAn xterm-256 color support library for changing terminal text colors and backgrounds.