Skip to content

[pubspec] Bump Dart SDK constraint to ^3.13.0#186957

Merged
auto-submit[bot] merged 5 commits into
flutter:masterfrom
bkonyi:bump-dart-stable-version-20260522
May 26, 2026
Merged

[pubspec] Bump Dart SDK constraint to ^3.13.0#186957
auto-submit[bot] merged 5 commits into
flutter:masterfrom
bkonyi:bump-dart-stable-version-20260522

Conversation

@bkonyi
Copy link
Copy Markdown
Contributor

@bkonyi bkonyi commented May 22, 2026

Bumps the Dart SDK version constraint in all tracked pubspec.yaml files to ^3.13.0, which is the latest beta Dart version.

This allows using newer Dart language features up to version 3.13.0 across the repository.

@bkonyi bkonyi requested a review from a team as a code owner May 22, 2026 16:22
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 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 flutter-gpu team-fluttergpu Owned by Flutter GPU team labels May 22, 2026
@github-project-automation github-project-automation Bot moved this to 🤔 Needs Triage in Flutter GPU May 22, 2026
@bkonyi bkonyi force-pushed the bump-dart-stable-version-20260522 branch from a0768e2 to 0f978b3 Compare May 22, 2026 16:27
@github-actions github-actions Bot removed the CICD Run CI/CD label May 22, 2026
Copy link
Copy Markdown
Contributor

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

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 constraint to ^3.12.0 across numerous pubspec.yaml files throughout the repository, including the framework, engine, examples, and development tools. The pubspec.lock file is also updated to reflect the new minimum SDK version. I have no feedback to provide.

@bkonyi bkonyi force-pushed the bump-dart-stable-version-20260522 branch from 0f978b3 to 09477ce Compare May 22, 2026 16:29
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label May 22, 2026
@bkonyi bkonyi force-pushed the bump-dart-stable-version-20260522 branch from 09477ce to 80eddf5 Compare May 22, 2026 16:31
@github-actions github-actions Bot removed the CICD Run CI/CD label May 22, 2026
@bkonyi bkonyi added the CICD Run CI/CD label May 22, 2026
@bkonyi bkonyi requested a review from Piinks May 22, 2026 16:32
@bkonyi bkonyi changed the base branch from main to master May 22, 2026 16:33
@bkonyi bkonyi force-pushed the bump-dart-stable-version-20260522 branch from 80eddf5 to 95c09c9 Compare May 22, 2026 17:44
@github-actions github-actions Bot removed the CICD Run CI/CD label May 22, 2026
@bkonyi bkonyi added the CICD Run CI/CD label May 25, 2026
@fluttergithubbot
Copy link
Copy Markdown
Contributor

An existing Git SHA, e7ae522aaad9bfc3b0e692e4555fe390601bda6d, 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.

@github-actions github-actions Bot removed the CICD Run CI/CD label May 25, 2026
@bkonyi bkonyi added the CICD Run CI/CD label May 25, 2026
Removes an extraneous final modifier in a top-level function parameter in zircon_tests.dart which was causing the 3.13 formatter to fail to parse the file.
@bkonyi bkonyi force-pushed the bump-dart-stable-version-20260522 branch from ac52928 to 7714e90 Compare May 25, 2026 19:41
@github-actions github-actions Bot removed the CICD Run CI/CD label May 25, 2026
@bkonyi bkonyi added the CICD Run CI/CD label May 25, 2026
@bkonyi bkonyi added the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 26, 2026
Merged via the queue into flutter:master with commit df8cb09 May 26, 2026
205 checks passed
@github-project-automation github-project-automation Bot moved this from 🤔 Needs Triage to ✅ Done in Flutter GPU May 26, 2026
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 26, 2026
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request May 26, 2026
Roll Flutter from e03b91f1fe34 to f3a4b9897834 (63 revisions)

flutter/flutter@e03b91f...f3a4b98

2026-05-26 47866232+chunhtai@users.noreply.github.com Update batch release doc to reflect latest workflow (flutter/flutter#186979)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from 0442274cc696 to 27a819894f7c (5 revisions) (flutter/flutter#187094)
2026-05-26 bkonyi@google.com [Tool Robustness] Gracefully handle asynchronous subprocess crashes and connection timeouts (flutter/flutter#186964)
2026-05-26 bkonyi@google.com [pubspec] Bump Dart SDK constraint to ^3.13.0 (flutter/flutter#186957)
2026-05-26 engine-flutter-autoroll@skia.org Roll Dart SDK from 7eb54169841d to 00e625453c43 (1 revision) (flutter/flutter#187086)
2026-05-26 bdero@google.com [Impeller] Retire Y-coord-scale plumbing by flipping GLES at the vertex stage (flutter/flutter#186556)
2026-05-26 engine-flutter-autoroll@skia.org Roll Skia from f4f294bdf98d to 0442274cc696 (2 revisions) (flutter/flutter#187079)
2026-05-26 kevmoo@users.noreply.github.com [flutter_tools] Fix version cache poisoning from git environment variables (flutter/flutter#186595)
2026-05-26 bkonyi@google.com [Tool] Handle DTD connection failures gracefully in widget-preview (flutter/flutter#186952)
2026-05-25 engine-flutter-autoroll@skia.org Roll Skia from 9d1adb5f2427 to f4f294bdf98d (1 revision) (flutter/flutter#187056)
2026-05-25 engine-flutter-autoroll@skia.org Roll Skia from 4dd78179e6ec to 9d1adb5f2427 (1 revision) (flutter/flutter#187048)
2026-05-25 engine-flutter-autoroll@skia.org Roll Skia from 1f26101197bf to 4dd78179e6ec (4 revisions) (flutter/flutter#187044)
2026-05-24 engine-flutter-autoroll@skia.org Roll Skia from bbe9ccc2bdbf to 1f26101197bf (1 revision) (flutter/flutter#187016)
2026-05-24 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from nsgcNDlZOuweOvy3Q... to Itd2Jq_ZIABH2rW7B... (flutter/flutter#187032)
2026-05-23 engine-flutter-autoroll@skia.org Roll Dart SDK from 7e0f28eb5315 to 7eb54169841d (1 revision) (flutter/flutter#187005)
2026-05-23 engine-flutter-autoroll@skia.org Roll Dart SDK from 90e55fa88456 to 7e0f28eb5315 (1 revision) (flutter/flutter#186990)
2026-05-23 engine-flutter-autoroll@skia.org Roll Fuchsia Linux SDK from 6T6BY9PTftoG3vP_1... to nsgcNDlZOuweOvy3Q... (flutter/flutter#186984)
2026-05-23 chris@bracken.jp iOS] Migrate VSyncClient to a pure Obj-C implementation (#186166) (flutter/flutter#186935)
2026-05-23 30870216+gaaclarke@users.noreply.github.com Disables embedder_tests.cm for fuchsia (flutter/flutter#186969)
2026-05-23 engine-flutter-autoroll@skia.org Roll Dart SDK from b8414c46f6c7 to 90e55fa88456 (2 revisions) (flutter/flutter#186977)
2026-05-22 engine-flutter-autoroll@skia.org Roll Skia from 6fdb013d1953 to bbe9ccc2bdbf (1 revision) (flutter/flutter#186980)
2026-05-22 mdebbar@google.com [web] Fix cutoff text in WebParagraph (flutter/flutter#186819)
2026-05-22 1961493+harryterkelsen@users.noreply.github.com fix(web): Removes the iterative downscaling hack (flutter/flutter#186914)
2026-05-22 30870216+gaaclarke@users.noreply.github.com opts the linux embedder into sdf rendering (flutter/flutter#186909)
2026-05-22 engine-flutter-autoroll@skia.org Roll Skia from dae8778ca40d to 6fdb013d1953 (5 revisions) (flutter/flutter#186970)
2026-05-22 dacoharkes@google.com Fix hooks inputs outputs rebuilt (flutter/flutter#186701)
2026-05-22 30870216+gaaclarke@users.noreply.github.com adds linux impeller integration test for external textures (flutter/flutter#186759)
2026-05-22 kevmoo@users.noreply.github.com fix(flutter_tools): defensively catch DWDS unregistered service extension errors (flutter/flutter#186896)
2026-05-22 bdero@google.com [Impeller] Add golden harness support to the renderer test layer (flutter/flutter#186735)
2026-05-22 mdebbar@google.com [web] Remove image codecs from canvaskit_chromium (flutter/flutter#178133)
2026-05-22 30870216+gaaclarke@users.noreply.github.com opts all macos into wide gamut (flutter/flutter#186277)
2026-05-22 engine-flutter-autoroll@skia.org Roll Skia from 356185490a75 to dae8778ca40d (9 revisions) (flutter/flutter#186949)
2026-05-22 1598289+lukemmtt@users.noreply.github.com Filter out SwiftPM schemes when fetching schemes (flutter/flutter#186006)
2026-05-22 engine-flutter-autoroll@skia.org Roll Packages from 3754d04 to 69cf959 (1 revision) (flutter/flutter#186950)
2026-05-22 engine-flutter-autoroll@skia.org Roll Dart SDK from eca46bec956d to b8414c46f6c7 (2 revisions) (flutter/flutter#186944)
2026-05-22 30870216+gaaclarke@users.noreply.github.com Saves a DeviceHolderVK with the CommandPoolVK (flutter/flutter#186749)
2026-05-22 engine-flutter-autoroll@skia.org Roll Dart SDK from e0d509fd676e to eca46bec956d (1 revision) (flutter/flutter#186922)
2026-05-22 bkonyi@google.com [ Tool ] Stop generating widget preview scaffold under $TMP (flutter/flutter#186476)
2026-05-21 737941+loic-sharma@users.noreply.github.com Fix typo in StretchingOverscrollIndicator docs (flutter/flutter#186897)
2026-05-21 engine-flutter-autoroll@skia.org Roll Dart SDK from 28c7cb5a8e8d to e0d509fd676e (1 revision) (flutter/flutter#186903)
2026-05-21 jason-simmons@users.noreply.github.com Fix some issues in the integration between EmbedderExternalViewEmbedder and Impeller (flutter/flutter#184905)
2026-05-21 jason-simmons@users.noreply.github.com Fix a potential buffer overflow in the animated PNG decoder when parsing malformed fdAT chunks (flutter/flutter#186700)
2026-05-21 engine-flutter-autoroll@skia.org Roll Skia from 2ff20950975d to 356185490a75 (5 revisions) (flutter/flutter#186892)
2026-05-21 flar@google.com Add primitive shadows to rendering benchmark (flutter/flutter#186779)
2026-05-21 15619084+vashworth@users.noreply.github.com Move prefetchSwiftPackages to be per platform (flutter/flutter#186468)
2026-05-21 okorohelijah@google.com Upgrade iOS version (flutter/flutter#186889)
...
Comment thread analysis_options.yaml
@Piinks
Copy link
Copy Markdown
Contributor

Piinks commented May 27, 2026

Reason for revert: this bumped the framework to an unstable version of Dart and made additional changes beyond the version bump. Attempting to cleanly revert and then will follow up with a bump to 3.12.

@auto-submit
Copy link
Copy Markdown
Contributor

auto-submit Bot commented May 27, 2026

Time to revert pull request flutter/flutter/186957 has elapsed.
You need to open the revert manually and process as a regular pull request.

@Piinks
Copy link
Copy Markdown
Contributor

Piinks commented May 27, 2026

Manually reverted in #187209

@Piinks
Copy link
Copy Markdown
Contributor

Piinks commented May 27, 2026

Also, just as a note, please follow the directions for the code freeze next time and contact the team to let them know you are overriding it.

@reidbaker
Copy link
Copy Markdown
Contributor

Reason for revert: this bumped the framework to an unstable version of Dart and made additional changes beyond the version bump. Attempting to cleanly revert and then will follow up with a bump to 3.12.
on master we regularly run non stable versions of dart. What about this version was particularly out of policy?

I am asking because I approved this pr and still dont understand why that was the wrong decision.

@Piinks
Copy link
Copy Markdown
Contributor

Piinks commented May 28, 2026

I am asking because I approved this pr and still dont understand why that was the wrong decision.

Sure thing! Couple of reasons:

  • We don't bump the Dart sdk in flutter/flutter beyond what is currently in stable. For example, if stable Flutter is on 3.12 and flutter/flutter is on 3.13, this can make cherry picks difficult. Another example is formatting changes currently in flight. 3.13 already introduced some so far, with more on the way. This disrupts our CI, affecting everyone making changes in flutter/flutter. This is why flutter/flutter must remain on a stable version of Dart so we are not disrupted by ongoing changes for the next release of Dart, which we would need to plan for in order to upgrade, such as closing the tree to reformat the whole repo.
  • When a new version of Dart introduces new language features, we need to align as a team and community of contributors on how they will be adopted in flutter/flutter. We typically update the style guide, and organize contributors to help migrate to new language features so the framework remains consistent in style.
  • This version bump affected the Material and Cupertino libraries. They are currently frozen as we are in the middle of moving the code to flutter/packages (Decoupling Material and Cupertino (with dart fixes) packages#11669). As such, they can't go to 3.13, as flutter/packages cannot exceed the stable 3.12. This disrupts work we have in flight to land these libraries in their new packages. Also, the instructions for overriding the code freeze specify letting us know it is being overridden, so we can advise or adjust the work we have in progress. We were not notified that this was overriding the code freeze.

Bumping the Dart version in flutter/flutter has not been documented well to provide this information to everyone. I am working on adding all of this information to ours docs so there is better guidance for the future. I'll probably link to it in all the pubspecs as well so when folks go to upgrade, the link to the docs is right there. 👍

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

Labels

a: accessibility Accessibility, e.g. VoiceOver or TalkBack. (aka a11y) a: internationalization Supporting other languages or locales. (aka i18n) a: tests "flutter test", flutter_test, or one of our tests a: text input Entering text in a text field or keyboard related problems 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. override code freeze Override an active code freeze. platform-fuchsia Fuchsia code specifically platform-web Web applications specifically team-fluttergpu Owned by Flutter GPU team team-ios Owned by iOS 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.

4 participants