-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Adds popscope migration guide #9872
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
|
Visit the preview URL for this PR (updated for commit 79ed2f8): |
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if any of my changes affect the meaning you intended, @chunhtai!
|
|
||
| ## Timeline | ||
|
|
||
| Landed in version: TBD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fill this out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update after the change is merged
|
Also, @chunhtai, please add this breaking change to the index page under "Not yet released to stable". thx! |
|
will reopen once i am back from vacation |
|
|
||
| ## Timeline | ||
|
|
||
| Landed in version: TBD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fill this out when pr merges. It would require internal migration, so may take some time
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks very good! Just a few fixes to smooth out the language.
Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
Adds a generic type and pop result to popscope and its friend. The use cases are to be able to capture the result when the pop is called. migration guide: flutter/website#9872
Reverts: #139164 Initiated by: chunhtai Reason for reverting: hard breaking change Original PR Author: chunhtai Reviewed By: {justinmc} This change reverts the following previous change: Adds a generic type and pop result to popscope and its friend. The use cases are to be able to capture the result when the pop is called. migration guide: flutter/website#9872
Adds a generic type and pop result to popscope and its friend. The use cases are to be able to capture the result when the pop is called. migration guide: flutter/website#9872
…lutter#147015) Reverts: flutter#139164 Initiated by: chunhtai Reason for reverting: hard breaking change Original PR Author: chunhtai Reviewed By: {justinmc} This change reverts the following previous change: Adds a generic type and pop result to popscope and its friend. The use cases are to be able to capture the result when the pop is called. migration guide: flutter/website#9872
sfshaza2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
|
||
| ## Summary | ||
|
|
||
| Added a generic type in [`PopScope`][] class and updated the [`onPopInvoked`][] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Added a generic type in [`PopScope`][] class and updated the [`onPopInvoked`][] | |
| Added a generic type in the [`PopScope`][] class and updated the [`onPopInvoked`][] |
| was called. The generic type is added to the `PopScope` class | ||
| so that `onPopInvoked` can access the type-safe result. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| was called. The generic type is added to the `PopScope` class | |
| so that `onPopInvoked` can access the type-safe result. | |
| was called. The generic type added to the `PopScope` class | |
| enables `onPopInvoked` access the type-safe result. |
waiting for flutter/flutter#139164 ## Presubmit checklist - [ ] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [ ] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [ ] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer. --------- Co-authored-by: Shams Zakhour (ignore Sfshaza) <[email protected]>
waiting for flutter/flutter#139164
Presubmit checklist