Skip to content

Enhance dependency upgrade instructions#13623

Open
mit-mit wants to merge 2 commits into
mainfrom
mit-mit-patch-1
Open

Enhance dependency upgrade instructions#13623
mit-mit wants to merge 2 commits into
mainfrom
mit-mit-patch-1

Conversation

@mit-mit

@mit-mit mit-mit commented Jul 23, 2026

Copy link
Copy Markdown
Member

Updated instructions for upgrading dependencies in pubspec.yaml to use the --major-versions flag.

Updated instructions for upgrading dependencies in pubspec.yaml to use the `--major-versions` flag.
@mit-mit
mit-mit requested review from a team and sfshaza2 as code owners July 23, 2026 10:52

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread sites/docs/src/content/packages-and-plugins/dependency-management.md Outdated
@mit-mit

mit-mit commented Jul 23, 2026

Copy link
Copy Markdown
Member Author

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>
@flutter-website-bot

flutter-website-bot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

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

@flutter-website-bot

flutter-website-bot commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

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

@parlough parlough left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mit-mit, suggesting this command makes a lot of sense.

One suggestion for you to consider, but looks good to me!

Comment on lines +183 to +184
This command automatically upgrades the constraints in your `pubspec.yaml` and
then runs `flutter pub get` to retrieve those upgraded dependencies.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider being a bit more specific here and turning the mention of flutter pub get into what is happening (retrieval).

Suggested change
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants