Skip to content

Conversation

@Piinks
Copy link
Contributor

@Piinks Piinks commented Apr 18, 2022

This removes the required keyword from deprecated API in the Flutter framework
It does not make sense to require folks to use deprecated API, when they should be migrating to the new code.

Fixes #102106
Related to dart-lang/sdk#48206

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.
  • All existing and new tests are passing.

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

@Piinks Piinks added c: contributor-productivity Team-specific productivity, code health, technical debt. framework flutter/packages/flutter repository. See also f: labels. c: tech-debt Technical debt, code quality, testing, etc. labels Apr 18, 2022
@Piinks Piinks requested a review from darrenaustin April 18, 2022 20:37
@flutter-dashboard flutter-dashboard bot added the f: material design flutter/packages/flutter/material repository. label Apr 18, 2022
Copy link
Contributor

@darrenaustin darrenaustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup. LGTM!

@goderbauer
Copy link
Member

Maybe there should be a lint to warn you that @deprecated on a required parameter doesn't make sense?

@Piinks
Copy link
Contributor Author

Piinks commented Apr 18, 2022

Maybe there should be a lint to warn you that @deprecated on a required parameter doesn't make sense?

I think that is in progress in dart-lang/sdk#48206

@fluttergithubbot
Copy link
Contributor

This pull request is not suitable for automatic merging in its current state.

  • The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Piinks
Copy link
Contributor Author

Piinks commented Apr 18, 2022

This'll take a little bit more work, looking at internal broken customers. I think I can just add a getter that unwraps the now nullable parameter to satisfy those.

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

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. c: tech-debt Technical debt, code quality, testing, etc. f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter should not have deprecated code that is required

4 participants