Skip to content

Bump minimum Dart SDK version constraint to 3.11.0-0 [testing skill]#188357

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
Piinks:bump-dart-to-3-11
Jun 24, 2026
Merged

Bump minimum Dart SDK version constraint to 3.11.0-0 [testing skill]#188357
auto-submit[bot] merged 3 commits into
flutter:masterfrom
Piinks:bump-dart-to-3-11

Conversation

@Piinks

@Piinks Piinks commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

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. 🙂

  • 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

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

@Piinks
Piinks requested a review from a team as a code owner June 22, 2026 23:19
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 22, 2026
@github-actions github-actions Bot added a: tests "flutter test", flutter_test, or one of our tests tool Affects the "flutter" command-line tool. See also t: labels. framework flutter/packages/flutter repository. See also f: labels. engine flutter/engine related. See also e: labels. a: internationalization Supporting other languages or locales. (aka i18n) platform-fuchsia Fuchsia code specifically d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos platform-web Web applications specifically f: integration_test The flutter/packages/integration_test plugin e: impeller Impeller rendering backend issues and features requests team-ios Owned by iOS platform team team-web Owned by Web platform team flutter-gpu team-fluttergpu Owned by Flutter GPU team labels Jun 22, 2026
@github-project-automation github-project-automation Bot moved this to 🤔 Needs Triage in Flutter GPU Jun 22, 2026
@fluttergithubbot

Copy link
Copy Markdown
Contributor

An existing Git SHA, a55a87120f121016f0ea859e5ab445d16c5215fa, was detected, and no actions were taken.

To re-trigger presubmits after closing or re-opeing a PR, or pushing a HEAD commit (i.e. with --force) that already was pushed before, push a blank commit (git commit --allow-empty -m "Trigger Build") or rebase to continue.

@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 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.

@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 22, 2026
@Piinks Piinks added the CICD Run CI/CD label Jun 22, 2026
@Piinks
Piinks force-pushed the bump-dart-to-3-11 branch from 0adb021 to b09b423 Compare June 23, 2026 15:01
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 23, 2026
@Piinks Piinks added the CICD Run CI/CD label Jun 23, 2026
@github-actions github-actions Bot removed the CICD Run CI/CD label Jun 23, 2026
@Piinks

Piinks commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

FYI @bkonyi and @dcharkes re: the areas of the codebase that have diverged from the repo's Dart SDK version. After this I will bump to 3.12, so we'll catch up to the divergence eventually.

@loic-sharma loic-sharma 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.

LGTM!

@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Jun 24, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Jun 24, 2026
Merged via the queue into flutter:master with commit 008d9ae Jun 24, 2026
206 of 207 checks passed
@github-project-automation github-project-automation Bot moved this from 🤔 Needs Triage to ✅ Done in Flutter GPU Jun 24, 2026
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Jun 24, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: internationalization Supporting other languages or locales. (aka i18n) a: tests "flutter test", flutter_test, or one of our tests CICD Run CI/CD d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos e: impeller Impeller rendering backend issues and features requests engine flutter/engine related. See also e: labels. f: integration_test The flutter/packages/integration_test plugin flutter-gpu framework flutter/packages/flutter repository. See also f: labels. platform-fuchsia Fuchsia code specifically platform-web Web applications specifically team-fluttergpu Owned by Flutter GPU team team-ios Owned by iOS platform team team-web Owned by Web platform team tool Affects the "flutter" command-line tool. See also t: labels.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants