Manages pubspec.yaml dependencies for Flutter/Dart projects. Enforces using the latest published version from pub.dev when adding or updating packages. Use when adding a dependency, updating pubspec.yaml, or asked "what version of X should I use".
Always use latest stable version from pub.dev. Never pin exact versions or copy version strings from docs/examples without verifying.
This applies everywhere — pubspec.yaml files, skill docs, README examples, code snippets. Any version string written without first fetching pub.dev is wrong.
Use pub.dev JSON API:
GET https://pub.dev/api/packages/<package-name>
Read latest.version from response. That is the version to use.
Write as ^<latest> (caret = compatible releases, allows patch + minor updates).
# GOOD