Skip to content

Conversation

ValentinVignal
Copy link
Contributor

Relates to flutter/packages#4881 and flutter/flutter#133773

This updates the documentation to the latest go_router version by using state.uri.queryParameters instead of state.queryParameters.

Pre-launch Checklist

  • I read the Effective Dart: Style recently, and have followed its advice.
  • I signed the CLA.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.

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

path: 'forgot-password',
builder: (context, state) {
final arguments = state.queryParameters;
final arguments = state.uri.queryParameters;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Above this code block there is the line:

#### [lib/main.dart](https://github.com/flutter/codelabs/blob/master/firebase-get-to-know-flutter/step_05/lib/main.dart#L23)

Which redirects to https://github.com/flutter/codelabs/blob/master/firebase-get-to-know-flutter/step_05/lib/main.dart#L23 which still contains state.queryParameters. Should I change the links in this file to https://github.com/flutter/codelabs/blob/main which contains the updated code?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, please make the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I made the change in doc: Redirect to main instead of master

@ValentinVignal
Copy link
Contributor Author

How could I write a test for this change?

@domesticmouse
Copy link
Contributor

PTAL @ericwindmill

@domesticmouse domesticmouse merged commit 9434012 into flutter:main Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants