Skip to content

[cupertino] Remove unused parameters from constructors of generic classes - #191398

Merged
srawlins merged 1 commit into
flutter:masterfrom
srawlins:unused-p-cup
Aug 25, 2026
Merged

srawlins merged 1 commit into
flutter:masterfrom
srawlins:unused-p-cup

Conversation

@srawlins

Copy link
Copy Markdown
Contributor

We already don't allow unused parameters from non-generic classes. There was a bug preventing us from reporting such parameters on generic classes.

This is work towards dart-lang/sdk#47839

This change is mirrored at flutter/packages#12457

Pre-launch Checklist

…sses.

We already don't allow unused parameters from non-generic classes. There was a bug preventing us from reporting such parameters on generic classes.

This is work towards dart-lang/sdk#47839

This change is mirrored at flutter/packages#12457
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 20, 2026
@github-actions

Copy link
Copy Markdown

This pull request contains changes to Material or Cupertino, which are currently frozen in this repository.

Changes should be made in material_ui and/or cupertino_ui in the flutter/packages repository.

Please refer to #188444 for instructions.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: routes Navigator, Router, and related APIs. f: cupertino labels Aug 20, 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 removes unused super.key and super.settings parameters from the constructors of several private Cupertino classes, including _ContextMenuRoute, _CupertinoBackGestureDetector, _SegmentedControlRenderWidget, _CupertinoDragGestureDetector, and _CupertinoDraggableScrollableSheet. There are no review comments, and I have no feedback to provide.

@srawlins

Copy link
Copy Markdown
Contributor Author

flutter/packages#12457 has landed.

@srawlins srawlins added the override code freeze Override an active code freeze. label Aug 25, 2026

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

LGTM 👍 . Similar to #191399 (review), this code is frozen but I assume that linting tools will complain if we don't make this change. Given that it should have no effect on users at all, I think it's fine to land.

@srawlins
srawlins added this pull request to the merge queue Aug 25, 2026
Merged via the queue into flutter:master with commit 223ca78 Aug 25, 2026
26 of 28 checks passed
@srawlins
srawlins deleted the unused-p-cup branch August 25, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD f: cupertino f: routes Navigator, Router, and related APIs. framework flutter/packages/flutter repository. See also f: labels. override code freeze Override an active code freeze.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants