Skip to content

[cupertino_ui] Use super parameters in more places - #12459

Merged
auto-submit[bot] merged 9 commits into
flutter:mainfrom
srawlins:use-super-cup
Aug 27, 2026
Merged

auto-submit[bot] merged 9 commits into
flutter:mainfrom
srawlins:use-super-cup

Conversation

@srawlins

Copy link
Copy Markdown
Contributor

This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon.

Pre-Review Checklist

Test exempt, as this code is covered by existing static and runtime checks.

This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously
report these cases. But they will be reported soon.
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Aug 13, 2026
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions Bot added triage-framework Should be looked at in framework triage p: cupertino_ui labels Aug 13, 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 updates the constructors of the _Segment and _SegmentSeparator classes in sliding_segmented_control.dart to use super-initializer parameters for the key property. There are no review comments, and I have no feedback to provide.

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

Thanks @srawlins! I think these will be safe to land in flutter/flutter as well so that dart-lang/sdk#47839 is not blocked from landing there. :)
Let me know if I can help with that.

For the PRs in cupertino_ui and material_ui, they will need a pending changelog file. See https://github.com/flutter/packages/pull/12381/files for an example. We have a new batch release process that pulls them all together into one changelog entry before a release.
There is a template in pending_changelogs/

@Piinks Piinks added triage-design Should be looked at in design triage and removed triage-framework Should be looked at in framework triage labels Aug 17, 2026
@dkwingsmt
dkwingsmt self-requested a review August 19, 2026 18:36

@dkwingsmt dkwingsmt 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. Thank you!

@Piinks

Piinks commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Requested changes to block merging. This still needs the pending changelog entry.

@srawlins

Copy link
Copy Markdown
Contributor Author

Sorrry for the delay. Done.

@Piinks

Piinks commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Sorrry for the delay. Done.

All good! :)

Comment thread packages/cupertino_ui/CHANGELOG.md Outdated
Comment thread packages/cupertino_ui/CHANGELOG.md Outdated
Comment thread packages/material_ui/CHANGELOG.md Outdated

@Piinks Piinks 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 - sorry for the mix up. We've been ramping up on the changelog process per package and I got confused. :)
These are private classes, no changelog needed, needs override labels to land.

@Piinks Piinks added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes autosubmit Merge PR when tree becomes green via auto submit App labels Aug 25, 2026
@auto-submit

auto-submit Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/packages/12459, because - The status or check suite Dashboard Checks has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 25, 2026
@Piinks Piinks added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 25, 2026
@auto-submit
auto-submit Bot merged commit 0d933e5 into flutter:main Aug 27, 2026
13 checks passed
pull Bot pushed a commit to Mu-L/flutter that referenced this pull request Aug 28, 2026
…er#191965)

flutter/packages@bd3cbc1...cd4cdd0

2026-08-28 [email protected] [material_ui] Add
all M3 templates and generated code to `temporarily_excluded/` before
migration (flutter/packages#12661)
2026-08-28 [email protected] Roll Flutter from
15d8908 to e8dca90 (58 revisions) (flutter/packages#12660)
2026-08-28 [email protected] [various] Update pigeon dev_dependency to
^27.3.2 (flutter/packages#12615)
2026-08-27 [email protected]
[camera_android_camerax] Enforce CHANGELOG backticks and add eval commit
author check to pre-push-skill (flutter/packages#12624)
2026-08-27 [email protected] [material_ui] Prevent stale async
suggestions in SearchAnchor (flutter/packages#12478)
2026-08-27 [email protected] [go_router_builder] Support analyzer 14
(flutter/packages#12614)
2026-08-27 [email protected] [cupertino_ui] Use super parameters in
more places (flutter/packages#12459)
2026-08-27 [email protected]
[material_ui] Remove no-shuffle from progress indicator test
(flutter/packages#12505)
2026-08-27 [email protected]
[two_dimensional_scrollables] Activate leak testing and fix memory leaks
(flutter/packages#11653)
2026-08-27 [email protected] [material_ui] Add
helper methods in gen_defaults template (flutter/packages#12637)
2026-08-27 [email protected] [cupertino_ui] fix CupertinoIcons
font not being included in examples and fix TextEditingController leaks
(flutter/packages#12228)
2026-08-27 [email protected]
[camera_android_camerax] Check Git hooks configuration in
check-readiness skill (flutter/packages#12628)
2026-08-27 [email protected] [ci] sync back pr
for branch release only run when release succeeds
(flutter/packages#12581)
2026-08-27 [email protected] [google_maps_flutter] Convert overlay
controllers to Swift (flutter/packages#12638)
2026-08-27 [email protected]
[go_router_builder] Fixes text golden test to ignore platform specific
newline (flutter/packages#12652)

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 [email protected] 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
dkwingsmt pushed a commit to srawlins/flutter that referenced this pull request Sep 9, 2026
This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon.

Already merged "upstream" at flutter/packages#12459
pull Bot pushed a commit to safarmer/flutter that referenced this pull request Sep 9, 2026
This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't
previously report these cases. But they will be reported soon.

Already merged "upstream" at
flutter/packages#12459


## 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 in-code documentation (doc comments with
`///`).
- [x] If this PR introduces a new feature or capability, I created and
linked a website documentation issue or PR in [flutter/website] (or
verified none is needed).
- [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
[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
[flutter/website]: https://github.com/flutter/website
[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
victorsanni pushed a commit to victorsanni/packages that referenced this pull request Sep 9, 2026
This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon.

## Pre-Review Checklist

Test exempt, as this code is covered by existing static and runtime checks.
victorsanni pushed a commit to victorsanni/packages that referenced this pull request Sep 9, 2026
This is work towards dart-lang/sdk#59226

The lint rule use_super_parameters has a bug such that it didn't previously report these cases. But they will be reported soon.

## Pre-Review Checklist

Test exempt, as this code is covered by existing static and runtime checks.
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 CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: cupertino_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants