Skip to content

[go_router_builder] Fixes an deprecated warning for using withNullability #9158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

raju-muliyashiya
Copy link
Contributor

@raju-muliyashiya raju-muliyashiya commented Apr 26, 2025

List which issues are fixed by this PR. You must list at least one issue.
fixes Issue #166603

Pre-Review Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] page, which explains my responsibilities.
  • I read and followed the [relevant style guides] and ran [the auto-formatter].
  • I signed the [CLA].
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I [linked to at least one issue that this PR fixes] in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy], or I have commented below to indicate which [version change exemption] this PR falls under[^1].
  • I updated CHANGELOG.md to add a description of the change, [following repository CHANGELOG style], or I have commented below to indicate which [CHANGELOG exemption] this PR falls under[^1].
  • I updated/added any relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or I have commented below to indicate which [test exemption] this PR falls under[^1].
  • All existing and new tests are passing.

@flutter-dashboard
Copy link

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.

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

mostly LGTM, just need to avoid using extension

@@ -438,6 +438,17 @@ extension ParameterElementExtension on ParameterElement {
bool get isExtraField => name == extraFieldName;
}

/// Extension helpers on [String] for nullability check.
extension TypeStringExtensions on String {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should avoid using extension as much as possible, I know we use elsewhere in go_router package, but they are against flutter style guide and we shouldn't add more

…y-deprecate-warning

# Conflicts:
#	packages/go_router_builder/CHANGELOG.md
#	packages/go_router_builder/pubspec.yaml
@raju-muliyashiya raju-muliyashiya requested a review from chunhtai May 8, 2025 19:18
Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai chunhtai requested a review from hannah-hyj May 8, 2025 19:56
Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

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

LGTM

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label May 8, 2025
@auto-submit auto-submit bot merged commit 1578d70 into flutter:main May 8, 2025
82 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 9, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request May 9, 2025
flutter/packages@ab44c26...7814fab

2025-05-08 40433176+KevynSM@users.noreply.github.com [go_router] Fix
requestFocus propagation to Navigator (flutter/packages#9177)
2025-05-08 65381000+raju8000@users.noreply.github.com
[go_router_builder] Fixes an deprecated warning for using
withNullability (flutter/packages#9158)
2025-05-08 engine-flutter-autoroll@skia.org Roll Flutter from
b0f5c8c to 02d8c1a (19 revisions) (flutter/packages#9230)
2025-05-08 43054281+camsim99@users.noreply.github.com
[camera_android_camerax] Fix camera preview rotation for landscape
oriented devices (flutter/packages#9097)

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
FMorschel pushed a commit to FMorschel/packages that referenced this pull request Jun 9, 2025
…lity (flutter#9158)

*List which issues are fixed by this PR. You must list at least one issue.*
[Issue #166603](flutter/flutter#166603)

## Pre-Review Checklist
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 p: go_router_builder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[go_router_builder] withNullability is deprecated
3 participants