85188 Commits

Author SHA1 Message Date
Hannah Jin
2b72e9cf34
[Web][a11y] Update selected chips semantics (#172660)
internal: b/430166300

## Pre-launch Checklist

- [ ] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [ ] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [ ] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [ ] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-23 23:56:47 +00:00
engine-flutter-autoroll
2505565964
Roll Skia from eea1c33fbe84 to 094ac350125f (29 revisions) (#172664)
https://skia.googlesource.com/skia.git/+log/eea1c33fbe84..094ac350125f

2025-07-23 michaelludwig@google.com Revert "[graphite] Fix draw/clip
contains priority"
2025-07-23 mike@reedtribe.org Make IsA and Convexity tracking match
SkPath
2025-07-23 mike@reedtribe.org Add defaults for path enums, declare as
8-bit
2025-07-23 nicolettep@google.com [graphite] Check support for
AHardwareBuffer VkFormat when deciding whether to import as external
format
2025-07-23 robertphillips@google.com Fix race condition in
lin_proPhoto_to_XYZ_D50's initialization
2025-07-23 jmbetancourt@google.com [skcapture] add initial plumbing for
getting SkCapture data from clients
2025-07-23 kjlubick@google.com Fix make_image_tag.sh
2025-07-23 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 15642e374bb9 to 0b8bda098b9a (1 revision)
2025-07-23
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-23 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE
from 239763d96a4b to 1c245d908ff3 (11 revisions)
2025-07-23 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
SwiftShader from 084f9893520c to b347398f5e86 (1 revision)
2025-07-23 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia
Infra from a898e8056b2f to 25c0effab214 (12 revisions)
2025-07-23 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn
from 6492a9924110 to 6ac8346974d5 (12 revisions)
2025-07-23 michaelludwig@google.com [graphite] Visit proxies after
prepareResources
2025-07-22 michaelludwig@google.com [graphite] Remove resource memory
dump debugging code
2025-07-22 michaelludwig@google.com Revert "[graphite] Increase area
required for inner fill"
2025-07-22 kjlubick@google.com Update GN build of CanvasKit
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 0830f159cb89 to 15642e374bb9 (5 revisions)
2025-07-22 faijur.rahman@imagination.corp-partner.google.com Add DDK
version check
2025-07-22 michaelludwig@google.com [graphite] Guard clip/draw
intersections with precision check
2025-07-22 kjlubick@google.com Change tag of Docker images to be
git-[hash]
2025-07-22 mike@reedtribe.org use value_or if we don't check invert()
success
2025-07-22
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE
from faf1bb4b3e72 to 239763d96a4b (8 revisions)
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from af70cb4dfd93 to 0830f159cb89 (4 revisions)
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
SwiftShader from 65b2c4777e5f to 084f9893520c (3 revisions)
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia
Infra from 4a7db687eea1 to a898e8056b2f (11 revisions)
2025-07-22 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Dawn
from 2502261c4d1a to 6492a9924110 (20 revisions)
2025-07-22
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC bwils@google.com,jsimmons@google.com,kjlubick@google.com on
the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2025-07-23 23:55:05 +00:00
Flutter GitHub Bot
027c6a7e69
Marks Mac_arm64_ios imitation_game_flutter to be unflaky (#168052)
<!-- meta-tags: To be used by the automation script only, DO NOT MODIFY.
{
  "name": "Mac_arm64_ios imitation_game_flutter"
}
-->
The test has been passing for [50 consecutive
runs](https://data.corp.google.com/sites/flutter_infra_metrics_datasite/flutter_check_test_flakiness_status_dashboard/?p=BUILDER_NAME:%22Mac_arm64_ios%20imitation_game_flutter%22).
This test can be marked as unflaky.
2025-07-23 23:55:05 +00:00
engine-flutter-autoroll
b6a4fda18b
Roll Dart SDK from a31774a3d049 to a181fe571dc8 (2 revisions) (#172667)
https://dart.googlesource.com/sdk.git/+log/a31774a3d049..a181fe571dc8

2025-07-23 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.10.0-23.0.dev
2025-07-23 dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com
Version 3.10.0-22.0.dev

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/dart-sdk-flutter
Please CC dart-vm-team@google.com,jsimmons@google.com on the revert to
ensure that a human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2025-07-23 23:55:04 +00:00
Elijah Okoroh
fdc1b5cd29
Adapt xcresult parser for Xcode 16 changes (#172596)
This PR updates the iOS build process to support breaking changes in
Xcode 16's xcresulttool. The xcresulttool get command, which Flutter
uses to parse native build issues, is deprecated and replaced by the new
xcresulttool get build-results command. This new command also introduces
a completely new, flatter JSON output format.

To address this while maintaining backwards compatibility, this change
introduces a two-part solution:
- The XCResultGenerator now detects the Xcode version and conditionally
calls the appropriate command (get build-results for Xcode 16+ and get
for older versions).
- The XCResult parser has been refactored to be "bilingual," meaning it
can intelligently detect the JSON structure and parse both the old
(nested) and new (flat) formats correctly.
- This ensures that native iOS build errors and warnings continue to be
correctly parsed and displayed to the user on all supported Xcode
versions.

Fixes #151502 

## Pre-launch Checklist

- [X] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-23 23:14:52 +00:00
Jason Simmons
8aeaf7247e
Update excluded_files to match the current output of the old license checker (#172670) 2025-07-23 22:33:53 +00:00
Siva
fa80cbcbdb
Manual Roll of Dart SDK from da9e0299c120 to a31774a3d049 (#172616)
https://dart.googlesource.com/sdk.git/+log/da9e0299c120..a31774a3d049

2025-07-22
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-21.0.dev
2025-07-22
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-20.0.dev
2025-07-22
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-19.0.dev
2025-07-22
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-18.0.dev
2025-07-21
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-17.0.dev
2025-07-21
[dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com](mailto:dart-internal-merge@dart-ci-internal.iam.gserviceaccount.com)
Version 3.10.0-16.0.dev
2025-07-23 18:02:59 +00:00
Gray Mackall
b46957fb06
[FGP] Small restructuring of Android Studio native flutter dependency support (#172651)
I asked for this in this comment
https://github.com/flutter/flutter/pull/167332#discussion_r2096361980
but the request may have been unclear, as the PR landed without the
change. Following up to structure based on my comment.

I want to avoid the configuration that is specific to this one use case
creeping out across the FGP and wider flutter tool if it doesn't need
to.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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 `///`).
- [ ] 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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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

Co-authored-by: Gray Mackall <mackall@google.com>
2025-07-23 17:35:08 +00:00
gaaclarke
1dc7352479
revert: Replaces legacy licenses check with licenses_cpp (#172568)
fixes https://github.com/flutter/flutter/issues/172567

There were 2 reasons for this:
1) the above listed issue where g3 wanted a specific long form license,
that needs to be investigated
1) autorollers are relying on the old tooling to autosubmit changes to
the license file

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-23 17:21:09 +00:00
John "codefu" McDole
f277865a8e
fix: size-exp naming (#172647)
@jason-simmons found the reason the `-size-exp` doesn't build

luci build: https://ci.chromium.org/b/8708539853637018417
2025-07-23 16:56:43 +00:00
engine-flutter-autoroll
c16c43f010
Roll Fuchsia Test Scripts from MnFlN7VWM_7h7EmBV... to BWj3yYC74ud58QhN0... (#172646)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/fuchsia-test-scripts-flutter
Please CC chrome-fuchsia-engprod@google.com,jsimmons@google.com on the
revert to ensure that a human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2025-07-23 16:30:08 +00:00
Jim Graham
3deedd23cd
[DisplayList] implement shadow bounds without relying on Skia utilities (#172572)
Right now DisplayList defers to Skia to compute the bounds of shadow
operations, but we really need to own this code now that we are doing
our own rendering so I ported it over and simplified it to just deal
with the cases we care about.

Eliminates a bullet item in
https://github.com/flutter/flutter/issues/161456
2025-07-23 15:20:31 +00:00
Matan Lurey
0a2ee25955
Update dev/bots/post_process_docs.dart to use flutter.version.json (#172601)
Towards https://github.com/flutter/flutter/issues/171900.

The "legacy" (`//version`) file has been "legacy" for years. This PR
allows deprecating and removing it in the near future.

Example of `//bin/cache/flutter.version.json`:
```json
{
  "frameworkVersion": "3.33.0-1.0.pre-1070",
  "channel": "master",
  "repositoryUrl": "unknown source",
  "frameworkRevision": "be9526fbaaaab9474e95d196b70c41297eeda2d0",
  "frameworkCommitDate": "2025-07-22 11:34:11 -0700",
  "engineRevision": "be9526fbaaaab9474e95d196b70c41297eeda2d0",
  "engineCommitDate": "2025-07-22 18:34:11.000Z",
  "engineContentHash": "70fb28dde094789120421d4e807a9c37a0131296",
  "engineBuildDate": "2025-07-22 11:47:42.829",
  "dartSdkVersion": "3.10.0 (build 3.10.0-15.0.dev)",
  "devToolsVersion": "2.48.0",
  "flutterVersion": "3.33.0-1.0.pre-1070"
}
```

Example of `//version`:
```txt
3.33.0-1.0.pre-1070
```
2025-07-23 14:46:09 +00:00
Matan Lurey
1e84cbef10
Emit a warning on --[no-]disable-dds, preferring --no-dds (#172595)
Towards https://github.com/flutter/flutter/issues/150279.

I'll CP this into 3.35, and then we can remove support for the flag on
`master`.

(IIRC this only still existed because of google3)
2025-07-23 14:36:35 +00:00
Robert Ancell
afba7d75b3
Remove GtkGLArea and render directly into GtkDrawingArea (#172343)
This simplifies the OpenGL/software case and allows us more control over
the buffering.
2025-07-23 02:04:50 +00:00
Matan Lurey
fb80c976c5
Prefix generated Dart plugin imports for registerWith (#172511)
Closes https://github.com/flutter/flutter/issues/100421.
2025-07-23 00:11:21 +00:00
Matan Lurey
7f92ee28ef
Remove stale references to .packages in tool tests (#172582)
Closes https://github.com/flutter/flutter/issues/106210.
2025-07-23 00:09:00 +00:00
Matan Lurey
6fd30fd25a
Wraps all git executions in a Git(...).*, use *=noglob on Windows (#172495)
Closes https://github.com/flutter/flutter/issues/74165.

The original issue called for, on Windows, telling `CYGWIN` to use
`=noglob`, to work around some git operation errors that happen when
using non-native Git. There ... was no great way to do this with the
existing codebase without, IMO, adding lots of confusing code.

So, I refactored all the calls of:
- before: `processUtils.<method>(['git', ...args], ...params)` 
- after: `git.<method>([...args], ...params)`

... and implicitly add the new environment variables, if
`Platform.isWindows`.

Did some minor test cleanup and process execution cleanup while I was at
it.
2025-07-23 00:03:32 +00:00
Matan Lurey
6d62770d08
Omit instruction to cd . after flutter create (#172513)
Closes https://github.com/flutter/flutter/issues/100588.
2025-07-22 22:45:14 +00:00
Alex Talebi
c45a67e4ac
Improve assertion message in AlignmentDirectional.resolve (#172096)
Replaces the generic assertion in `AlignmentDirectional.resolve` and
`_MixedAlignment.resolve` with
`debugCheckCanResolveTextDirection`.

This change provides a more helpful and descriptive error message when
the `TextDirection` is null, improving the developer experience by
clearly stating why the resolution failed and how to fix it.

Fixes: #171813, Fixes: #171814, also fixes: #171812

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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.

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-22 22:11:01 +00:00
jesswrd
e12d263d3d
Update warnGradleVersion to 8.7.0 (#172576)
When using a lower Gradle version, a warning to update to at least 8.7.2
is shown, but 8.7.2 is not a valid version. Changed warnGradleVersion
from 8.7.2 to 8.7.0.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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.
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-22 21:20:08 +00:00
Matan Lurey
3038239932
Use a fake representation of cache/artifacts/gradle_wrapper (#172503)
... so that it doesn't require downloading cache artifacts to run
`general.shard/project_test.dart`.

Closes https://github.com/flutter/flutter/issues/83275.
2025-07-22 21:13:03 +00:00
LongCatIsLooong
be9526fbaa
Revert #160653 Fix view removal process for AutofillContextAction.cancel (#172490)
Between #145681 (autofill save prompt shows up for password fields when
you dismiss the keyboard) and #172250 (calling `TextInput.hide` causes
the current active text field to lose its text) the latter seems to be
the worse bug. The framework `EditableText` implementation only calls
`TextInput.hide` when switching input controls, so #172250 typically
does not affect flutter text fields itself, but becomes a problem if the
app wishes to add UI (similar to the iOS down-arrow button that would
show up above the keyboard when you're filling out a form) to dismiss
the keyboard.

This reopens #145681. See
https://github.com/flutter/flutter/issues/145681#issuecomment-3098865633

@koji-1009 does reverting sound ok to you?

## Pre-launch Checklist

- [ ] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [ ] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [ ] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [ ] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel
on [Discord].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-22 18:34:11 +00:00
Michael Goderbauer
6b7d92852c
Bump meta to 0.17.0 (#172541)
Unclear why the bot didn't bump this.
2025-07-22 17:51:20 +00:00
gaaclarke
ee0cc6652b
Licenses cpp ignore whitespace (#172512)
2 big changes:
1) \s+ is assumed for any whitespace in the source matcher
1) trailing space is no longer captured in matched text

I didn't change any of the data files, so that can be done in a more
controlled pr.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-22 17:39:19 +00:00
John "codefu" McDole
ff983d3598
feat: start using the content aware hash for downloading artifacts (#172552)
reland of https://github.com/flutter/flutter/pull/171927
towards https://github.com/flutter/flutter/issues/171790

Use the content aware hash when downloading engine artifacts. These are
currently produced when changes to DEPs, engine/, or the release file
are changed in a not-seen-before way.

We can eventually remove engine.version being tracked in release
branches as an optimization.

FLUTTER_PREBUILT_ENGINE_VERSION will stay for overriding the
engine.version for testing. Though Cocoon does not need to actually set
it for framework only PRs anymore.

fxies post submit tests for content_hash download:
SHARD=framework_tests SUBSHARD=misc dart --enable-asserts
dev/bots/test.dart
SHARD=tool_host_cross_arch_tests dart --enable-asserts
dev/bots/test.dart

```
  ╔═╡ERROR https://github.com/flutter/flutter/pull/1╞════════════════════════════════════════════════════════════════════
  ║ Expected "Flutter Engine Version: 45b085ab2118f30441ae6e2daab4b8eb3e4a063c", but found "Flutter Engine Version: 407c051ec9".
  ╚═══════════════════════════════════════════════════════════════════════════════
```

```
  Expected: contains '45b085ab2118f30441ae6e2daab4b8eb3e4a063c'
     Which: does not contain '45b085ab2118f30441ae6e2daab4b8eb3e4a063c'
```
2025-07-22 17:35:26 +00:00
nakanoh
404fb3f14f
fix: correct typo in analysis_options.yaml comment (disabeling -> disabling) (#170206)
This PR fixes a typo in the comment of `analysis_options.yaml`, changing
'disabeling' to 'disabling'. This is a simple typo fix in a comment that
improves code readability.

No issue is required as this is a trivial typo fix in a comment.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide].
- [x] I signed the [CLA].
2025-07-22 14:59:28 +00:00
Matan Lurey
d16e5b9971
Hide flutter assemble unless --verbose (#172508)
Towards https://github.com/flutter/flutter/issues/97505.
2025-07-22 05:34:22 +00:00
Huy
db38e71bfc
Fix PopupMenuButton crashes when being hidden immediately (#171970)
- Fix https://github.com/flutter/flutter/issues/171422 (and maybe also
https://github.com/flutter/flutter/issues/167180, and
https://github.com/flutter/flutter/issues/163477)
- Investigation: Per discussion in
https://github.com/flutter/flutter/issues/171422, the issue is probably
happening due to accessing inherited widgets via `context` in
`positionBuilder`(like `PopupMenuTheme`) when PopupMenu's State is
inactive. This PR proposed a fix by caching the necessary objects in
`didChangeDependencies` method. Some of `RenderBox` are also cached to
avoid another exception like _Cannot get renderObject of inactive
element._.This solution can also be seen at another widget like
`CalendarDatePicker`:


d6b2a95215/packages/flutter/lib/src/material/calendar_date_picker.dart (L225-L232)

<details open>
<summary>Demo</summary>

| before | after |
| --------------- | --------------- |
<video
src="https://github.com/user-attachments/assets/2af0a4cb-216c-4033-bdd6-d288338bdf6b"/>
| <video
src="https://github.com/user-attachments/assets/c3e46f9c-9ead-4060-9df7-208bee7be740"/>

</details>

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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

Signed-off-by: huycozy <huy@nevercode.io>
Co-authored-by: Tong Mu <dkwingsmt@users.noreply.github.com>
2025-07-22 03:16:48 +00:00
Victor Sanni
6a3ebfe3f3
Add hitTestChildren to baseline-aligned stack (#172485)
Fixes http://github.com/flutter/flutter/issues/171510
2025-07-22 03:13:06 +00:00
engine-flutter-autoroll
3ceb2e0a48
Roll Skia from 4aba494b8108 to eea1c33fbe84 (11 revisions) (#172515)
https://skia.googlesource.com/skia.git/+log/4aba494b8108..eea1c33fbe84

2025-07-21 kjlubick@google.com Remove IWYU build logic from Bazel
2025-07-21
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-21 michaelludwig@google.com [graphite] Tighter bounds for
stroked [r]rects
2025-07-21 michaelludwig@google.com [graphite] Check for scissor before
converting to clear/discard op
2025-07-21 michaelludwig@google.com [graphite] Fix paint_depends_on_dst
logic
2025-07-21 kjlubick@google.com Remove old Bazel docker files
2025-07-21 michaelludwig@google.com [graphite] Fix draw/clip contains
priority
2025-07-21
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-21 michaelludwig@google.com [graphite] Don't allow clip/draw
intersections to produce subpixel draws
2025-07-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from c8bd17b0ce68 to af70cb4dfd93 (3 revisions)
2025-07-21 lukasza@chromium.org [rust png] Verify `IHDR` dimensions
*before* constructing encoded info.

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC bwils@google.com,jsimmons@google.com,kjlubick@google.com on
the revert to ensure that a human
is aware of the problem.

To file a bug in Skia: https://bugs.chromium.org/p/skia/issues/entry
To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2025-07-22 02:25:37 +00:00
gaaclarke
f63b38f275
Replaces legacy licenses check with licenses_cpp (#172486)
Successful run example:
https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20linux_license/35497/overview

The output of licenses_cpp was verified by comparing it's output with
`//flutter/tools/license_file_compare`. All copyrights from the old tool
exist in the new tool.

major differences:
1) runtime - 30s locally
1) macos compatibility
1) there are no more checked-in goldens, instead the log from the run is
used to audit

design doc:
https://docs.google.com/document/d/1TldHod_Ske3llv26l4eIyt64bg8TeDc7Jk7u9L7gnvM/edit?tab=t.0#heading=h.17wg41voij6q

work left:
1) delete old license checker
1) clean up the handling of licenses that exist across multiple comments
(boost license)
1) clean up the data directory so that whitespace between words is
ignored. (remove `\s+` usage)

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-22 00:43:09 +00:00
Matan Lurey
359b29382a
Omit w (widget tree), t (render tree) from flutter run --profile h (#172506)
Closes https://github.com/flutter/flutter/issues/91690.
2025-07-22 00:41:09 +00:00
Matan Lurey
ffd1baa342
Refactor checks for --machine (#172504)
Was already fixed in https://github.com/flutter/flutter/pull/150138, so
removes duplicate flag.

Already tested by existing test suite.
2025-07-22 00:41:08 +00:00
Ricardo Dalarme
f95c68ec14
feat(IconButton): add property to specify a states controller (#169821)
## Description

Enable specifying a custom statesController to the IconButton widget.
This increase consistency since other widgets expose this property as
well.

## Related Issues

- Closes https://github.com/flutter/flutter/issues/139372

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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.
2025-07-22 00:33:25 +00:00
auto-submit[bot]
c5465e9eb7
Reverts "feat: start using the content aware hash for downloading artifacts (#171927)" (#172505)
<!-- start_original_pr_link -->
Reverts: flutter/flutter#171927
<!-- end_original_pr_link -->
<!-- start_initiating_author -->
Initiated by: matanlurey
<!-- end_initiating_author -->
<!-- start_revert_reason -->
Reason for reverting: Broke the tree, due to naughty tests but too
intensive to fix forward.
<!-- end_revert_reason -->
<!-- start_original_pr_author -->
Original PR Author: jtmcdole
<!-- end_original_pr_author -->

<!-- start_reviewers -->
Reviewed By: {matanlurey, chingjun}
<!-- end_reviewers -->

<!-- start_revert_body -->
This change reverts the following previous change:
towards #171790 

Use the content aware hash when downloading engine artifacts. These are
currently produced when changes to DEPs, engine/, or the release file
are changed in a not-seen-before way.

We can eventually remove `engine.version` being tracked in release
branches as an optimization.

`FLUTTER_PREBUILT_ENGINE_VERSION` will stay for overriding the
engine.version for testing. Though Cocoon does not need to actually set
it for framework only PRs anymore.
<!-- end_revert_body -->

Co-authored-by: auto-submit[bot] <flutter-engprod-team@google.com>
2025-07-21 23:09:47 +00:00
Robert Ancell
407c051ec9
Render Flutter in its own EGL context (#172330)
This allows Flutter to render without any GTK windows present (required
for multi-window)
2025-07-21 21:59:37 +00:00
Kishan Rathore
89b7248437
Feat: Add momentary varient of CupertinoSlidingSegmentedControl (#164262)
This PR introduces a new boolean flag, `isMomentary`, to the
`CupertinoSlidingSegmentedControl` widget.

When `isMomentary` is set to `true`, the segmented control behaves like
a momentary switch. Selecting a segment triggers its associated action
(e.g., via `onValueChanged`), but the segment doesn't stay visually
selected after the interaction ends. The control visually returns to its
previous state or a default state (often no segment selected).

When `isMomentary` is `false` (the default behavior), the control
maintains the selection state visually, highlighting the last chosen
segment.

**Motivation**

Currently, `CupertinoSlidingSegmentedControl` always maintains a
selected state. There are use cases where developers might want to use
the segmented control purely for triggering actions without persisting a
visual selection state, similar to how a `UISegmentedControl` can be
configured on iOS with `isMomentary = true`. This provides more
flexibility and aligns the Flutter widget closer to its native
counterpart's capabilities.

For example, this could be useful for triggering sorting actions, view
changes, or other immediate operations where maintaining a persistent
"selected" state isn't desired or meaningful.

**Related Issues**
fixes: #164077 

**Videos**
UISegmentedControl behaviour when `isMomentary` flag is set to true.

https://github.com/user-attachments/assets/84d00312-4530-4b7a-9696-142f60ad89c0

CupertinoSlidingSegmentedControl behaviour when `isMomentary` flag is
set to true.

https://github.com/user-attachments/assets/b308b4fa-e641-417a-a518-4e0908876eed

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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.
2025-07-21 20:59:34 +00:00
engine-flutter-autoroll
989e196fec
Roll Packages from cb8fef62993f to 9c85e5e72e7b (10 revisions) (#172479)
cb8fef6299...9c85e5e72e

2025-07-21 engine-flutter-autoroll@skia.org Roll Flutter from
70a3c3cc935e to 70cdc0c933d6 (4 revisions) (flutter/packages#9658)
2025-07-21 stuartmorgan@google.com [google_sign_in] Update to
GoogleSignIn-iOS 9 (flutter/packages#9655)
2025-07-20 engine-flutter-autoroll@skia.org Roll Flutter from
440713c3b287 to 70a3c3cc935e (11 revisions) (flutter/packages#9653)
2025-07-20 stuartmorgan@google.com Have Gemini ignore Flutter version
pin (flutter/packages#9647)
2025-07-18 engine-flutter-autoroll@skia.org Roll Flutter from
9c626d9f9afa to 440713c3b287 (19 revisions) (flutter/packages#9646)
2025-07-18 robert.odrowaz@leancode.pl [camera_avfoundation]
Implementation swift migration - part 8 (flutter/packages#9635)
2025-07-17 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1
in /packages/webview_flutter/webview_flutter_android/android
(flutter/packages#9609)
2025-07-17 katelovett@google.com [two_dimensional_scrollables] Fix
missing leading cache extent for TableView (flutter/packages#9636)
2025-07-17 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump com.android.tools.build:gradle from 8.9.0 to 8.11.1
in /packages/interactive_media_ads/android (flutter/packages#9623)
2025-07-17 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds
overrides for constructors and static members of ProxyApis
(flutter/packages#9515)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
2025-07-21 19:21:08 +00:00
Matan Lurey
852760424a
Wrap ShutdownHook calls to avoid crashing the tool (#171917)
Closes https://github.com/flutter/flutter/issues/57351.
2025-07-21 18:41:08 +00:00
p1318k
b2a6cdb520
fix: macOS Mojave Crash on Flutter Desktop Startup (#172282)
<!--
Thanks for filing a pull request!
Reviewers are typically assigned within a week of filing a request.
To learn more about code review, see our documentation on Tree Hygiene:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
-->

Overview
This PR fixes a crash that occurs when launching Flutter desktop
applications on macOS Mojave (10.14).

Changes Made
• Added conditional checks to ensure the code using the
`hasUnifiedMemory` API only runs on macOS 10.15 or later, since
`hasUnifiedMemory` is only supported starting from macOS 10.15.
• Ensured that the fix maintains compatibility with newer macOS versions
without affecting existing functionality.

Testing
• Verified that Flutter desktop apps launch and run normally on both
macOS Mojave and later macOS versions.
• Confirmed no side effects by running default Flutter desktop sample
apps.

Additional Notes
•
https://developer.apple.com/documentation/metal/mtldevice/hasunifiedmemory

This PR aims to improve the stability of Flutter desktop applications on
macOS Mojave.
Thank you for your review and consideration.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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

Co-authored-by: Kim Ki Cheol <kim.kicheol@sk.com>
2025-07-21 18:18:26 +00:00
engine-flutter-autoroll
1b293a8814
Roll Skia from 9587301e33bc to 4aba494b8108 (41 revisions) (#172471)
Roll Skia from 9587301e33bc to 4aba494b8108 (41 revisions)

https://skia.googlesource.com/skia.git/+log/9587301e33bc..4aba494b8108

2025-07-21 mike@reedtribe.org Change matrix::invert to return optional
2025-07-21 kjlubick@google.com Manually Roll Dawn from 81e90f7fd7f3 to
f286693b70bd
2025-07-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE
from 6a04a50f98ca to faf1bb4b3e72 (3 revisions)
2025-07-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia
Infra from 382fe7d5f3d0 to 4a7db687eea1 (6 revisions)
2025-07-21
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-21 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 827e0dba01ad to c8bd17b0ce68 (3 revisions)
2025-07-21 msta@google.com Fix missing include for atoi call
2025-07-20 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 62162b8f056a to 827e0dba01ad (1 revision)
2025-07-19 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from e6d6f02f4e9a to 62162b8f056a (3 revisions)
2025-07-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 5b38fae98a66 to e6d6f02f4e9a (7 revisions)
2025-07-18
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-18 mike@reedtribe.org add gm to excercise matrix-order
correctness in scalercontext
2025-07-18 vigneshv@google.com SkCrabbyAvifCodec: Compute profile for PQ
and HLG images
2025-07-18 mike@reedtribe.org Return computed matrices by value,
allowing const and temp values
2025-07-18 michaelludwig@google.com [graphite] Unify clear/discard load
op handling inside drawGeometry
2025-07-18 bungeman@google.com [pdf] Fix zero extended glyph to code
point maps
2025-07-18 mike@reedtribe.org Use optional version of
SkPath::ReadFromMemory
2025-07-18 kjlubick@google.com Fix permissions on Docker build scripts
2025-07-18
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from ff48a069ed93 to 5b38fae98a66 (6 revisions)
2025-07-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE
from ed15cbd416d8 to 6a04a50f98ca (6 revisions)
2025-07-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll Skia
Infra from 1198e6ff0d0c to 382fe7d5f3d0 (6 revisions)
2025-07-18
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-18
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-17 thomsmit@google.com [graphite] Update trace to new DenseBiMap
2025-07-17
recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com
Roll recipe dependencies (trivial).
2025-07-17 kjlubick@google.com Build debugger/jsfiddle/shaders directly
with Docker
2025-07-17 jlavrova@google.com Update dependency on abseil (for Dawn)
2025-07-17 thomsmit@google.com [graphite] Dynamic Samplers
2025-07-17 vigneshv@google.com SkCodec: Support RGBA_1010102 in
initializeColorXform
2025-07-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll
vulkan-deps from 286b9f0629a4 to ff48a069ed93 (2 revisions)
2025-07-17 kjlubick@google.com Fix canvaskit build after update to
emscripten 4.0.7
2025-07-17 mike@reedtribe.org Use pathbuilder or path-factories
2025-07-17 thomsmit@google.com Allow fallback to SWPathRenderer for high
verb counts
2025-07-17 michaelludwig@google.com Revert "[graphite] Snap scissor
rects to 4px boundaries"
2025-07-17 kjlubick@google.com Remove code guarded by
SK_DISABLE_LEGACY_NONRECORDER_IMAGE_APIS
2025-07-17 robertphillips@google.com [graphite] Add a stub for Android's
RuntimeEffectManager
2025-07-17 michaelludwig@google.com [graphite] Increase area required
for inner fill
2025-07-17 kjlubick@google.com Remove copy-pasta from make_image_tag.sh
2025-07-17 michaelludwig@google.com [graphite] Only add RenderStep
coverage SkSL if step reports coverage
2025-07-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ANGLE
from 890b5d8fa298 to ed15cbd416d8 (2 revisions)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/skia-flutter-autoroll
Please CC bwils@google.com,jsimmons@google.com,kjlubick@google.com on
the revert to ensure that a human
...
2025-07-21 17:57:12 +00:00
stuartmorgan-g
0fdde5a2b0
Add CLA note to tree hygiene (#172475)
Adds a note about the CLA to the steps to contributing code to Flutter,
including suggested language for how this applies to use of generative
tools.
2025-07-21 17:53:10 +00:00
Valentin Vignal
257b4f524b
Add radioInnerRadius to RadioListTile (#171851)
Part of https://github.com/flutter/flutter/issues/168787

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].

<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[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
2025-07-21 17:49:21 +00:00
Srujan Gaddam
932cb033e6
Use baseUri always when doing a hot reload or hot restart (#172271)
We already use the baseUri when computing hot reload sources metadata as
it can never be null. The member is changed to be non-nullable to
reflect that.

To be consistent, we also use the baseUri (full url) for a hot restart
when running with the DDC library bundle format.

Related PR: https://github.com/dart-lang/webdev/pull/2650

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [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].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [ ] 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.
2025-07-21 17:40:57 +00:00
John "codefu" McDole
40992ec4f8
feat: start using the content aware hash for downloading artifacts (#171927)
towards #171790 

Use the content aware hash when downloading engine artifacts. These are
currently produced when changes to DEPs, engine/, or the release file
are changed in a not-seen-before way.

We can eventually remove `engine.version` being tracked in release
branches as an optimization.

`FLUTTER_PREBUILT_ENGINE_VERSION` will stay for overriding the
engine.version for testing. Though Cocoon does not need to actually set
it for framework only PRs anymore.
2025-07-21 17:41:44 +00:00
Matan Lurey
80f4a0f251
Add support for /? to alias to --help (#172328)
Closes https://github.com/flutter/flutter/issues/70616.
2025-07-21 17:20:08 +00:00
Jason Simmons
99b69feaca
Upgrade flutter_lints in project template pubspec.yaml files (#172400)
The version of flutter_lints used by newly created projects should match
the version used by flutter_tools. This ensures that "pub get --offline"
will work on a project that was generated by "flutter create".

Also restore the Mac tool_tests_commands that were temporarily disabled
in https://github.com/flutter/flutter/pull/172388

Fixes https://github.com/flutter/flutter/issues/172375
2025-07-21 17:11:59 +00:00
Matan Lurey
7b99061e06
Use $dartSdkVersion when creating "dummy" pubspec for create_api_docs (#172327)
Closes https://github.com/flutter/flutter/issues/70239.

/cc @ievdokdm
2025-07-21 17:09:18 +00:00
Matan Lurey
8667c183af
Adds (defaults to ___) when using flutter config --help (#172329)
Closes https://github.com/flutter/flutter/issues/81665.
2025-07-21 17:09:17 +00:00