Enhance dependency upgrade instructions#13623
Conversation
Updated instructions for upgrading dependencies in pubspec.yaml to use the `--major-versions` flag.
There was a problem hiding this comment.
Code Review
This pull request updates the dependency management documentation to recommend using the flutter pub upgrade --major-versions command for upgrading to newer major versions. The review feedback suggests a minor improvement to refer to flutter pub get instead of pub get to maintain consistency with Flutter-specific tooling.
|
This is consistent with what we have in https://docs.flutter.dev/install/upgrade#upgrade-packages |
…ent.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
|
Staged preview of the updated docs.flutter.dev site (updated for commit d4a073c): https://flutter-docs-prod--docs-pr13623-mit-mit-patch-1-dc7s4c9q.web.app |
|
Staged preview of the updated flutter.dev site (updated for commit d4a073c): https://flutter-dev-230821--www-pr13623-mit-mit-patch-1-5j5wd3fu.web.app |
| This command automatically upgrades the constraints in your `pubspec.yaml` and | ||
| then runs `flutter pub get` to retrieve those upgraded dependencies. |
There was a problem hiding this comment.
Consider being a bit more specific here and turning the mention of flutter pub get into what is happening (retrieval).
| This command automatically upgrades the constraints in your `pubspec.yaml` and | |
| then runs `flutter pub get` to retrieve those upgraded dependencies. | |
| This command updates the constraints in your `pubspec.yaml` file to | |
| allow the latest resolvable versions, then retrieves those versions. |
Updated instructions for upgrading dependencies in
pubspec.yamlto use the--major-versionsflag.