Skip to content

[beta] Cherry pick https://github.com/flutter/flutter/pull/181269#181371

Merged
auto-submit[bot] merged 1 commit into
flutter:flutter-3.41-candidate.0from
dkwingsmt:cp-181269
Jan 27, 2026
Merged

[beta] Cherry pick https://github.com/flutter/flutter/pull/181269#181371
auto-submit[bot] merged 1 commit into
flutter:flutter-3.41-candidate.0from
dkwingsmt:cp-181269

Conversation

@dkwingsmt

@dkwingsmt dkwingsmt commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

This PR cherrypicks #181269 into beta. This is needed to address a breakage.

Impacted Users: Apps that directly use CupertinoSheetTransition .

Impact Description: Can not compile.

Workaround: Yes. They need to add topGap: 0.08 to the constructor.

Risk: Low. This PR loosens the API, and reverts the behavior to that before #171348.

Test Coverage: Yes. The widget has high test coverage.

Validation Steps: The PR compiles and tests pass. sheet_test.dart contains constructors that do not specify topGap in the same way as existing apps.

@flutter-dashboard

Copy link
Copy Markdown

This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter.

Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository labels Jan 23, 2026

@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 addresses a compilation breakage by making the topGap parameter in the CupertinoSheetTransition constructor optional, defaulting to _kTopGapRatio. The documentation for topGap has been updated to reflect this change and to use a template for consistency. Corresponding test cases have been adjusted to remove the explicit topGap: 0.08 argument, relying on the new default value. The changes are well-aligned with the stated objective of loosening the API to resolve the compilation issue.

@dkwingsmt dkwingsmt added the cp: review Cherry-picks in the review queue label Jan 23, 2026

@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

@dkwingsmt dkwingsmt changed the title [stable] Cherry pick https://github.com/flutter/flutter/pull/181269 [beta] Cherry pick https://github.com/flutter/flutter/pull/181269 Jan 27, 2026
@eyebrowsoffire eyebrowsoffire added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 27, 2026
@auto-submit auto-submit Bot merged commit 7e227d1 into flutter:flutter-3.41-candidate.0 Jan 27, 2026
141 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App cp: review Cherry-picks in the review queue f: cupertino flutter/packages/flutter/cupertino repository framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants