Bump minimum Dart SDK version constraint to 3.11.0-0 [testing skill]#188357
Merged
Conversation
Contributor
|
An existing Git SHA, To re-trigger presubmits after closing or re-opeing a PR, or pushing a HEAD commit (i.e. with |
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the Dart SDK version constraint to ^3.11.0-0 across numerous pubspec.yaml files in the repository. Additionally, it upgrades several package dependencies, including unified_analytics, hooks_runner, path_provider, and webview_flutter, and updates the corresponding lockfile. There are no review comments, and I have no feedback to provide.
Piinks
force-pushed
the
bump-dart-to-3-11
branch
from
June 23, 2026 15:01
0adb021 to
b09b423
Compare
Contributor
Author
This was referenced Jun 25, 2026
via-guy
pushed a commit
to via-guy/flutter
that referenced
this pull request
Jun 26, 2026
…lutter#188357) This bumps Dart across the repo to 3.11, with a few exceptions. I am authoring a skill (tbd) and script (flutter#187800) to do this in the future. After this, I will be moving us to 3.12 to continue to iterate on the skill and script before proposing to check them in. There are some places where the Dart version has deviated from the consistent standard across the repo. I have considered changing these as out of scope for this PR since they are broken when changed. We should consider updating them to reflect a uniform version for the repo. They made for interesting edge cases in the script and skill development. 🙂 - flutter/dev/integration_tests/widget_preview_scaffold/pubspec. yaml - This is on Dart 3.12. It cannot be changed since the source code has already adopted 3.12 language features - All of these integration tests have a range set (>=3.5.0-0 <4.0.0), and resolve to 3.13 in CI: - flutter/dev/integration_tests/data_asset_app/pubspec.yaml - flutter/dev/integration_tests/data_asset_package/pubspec.yaml - flutter/dev/integration_tests/record_use_test_app/pubspec.yaml - flutter/dev/integration_tests/record_use_test_package/pubspec. yaml - flutter/dev/integration_tests/hybrid_android_views/pubspec. yaml ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [AI contribution guidelines]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
This was referenced Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This bumps Dart across the repo to 3.11, with a few exceptions. I am authoring a skill (tbd) and script (#187800) to do this in the future.
After this, I will be moving us to 3.12 to continue to iterate on the skill and script before proposing to check them in.
There are some places where the Dart version has deviated from the consistent standard across the repo. I have considered changing these as out of scope for this PR since they are broken when changed. We should consider updating them to reflect a uniform version for the repo. They made for interesting edge cases in the script and skill development. 🙂
yaml
yaml
yaml
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.
If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.
Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the
gemini-code-assistbot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.