-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Improve some docs around WillPopScope. #11429
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
|
cc @HansMuller for review |
...and break the navigator<->routes circular dependency. This is a step towards fixing flutter#9577 but doesn't yet do so.
| /// | ||
| /// If [Route.willPop] returns [pop] then the back button will actually pop | ||
| /// the current route. | ||
| pop, |
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.
Per our conversation, this isn't new code, it's just been relocated. We need to decide/document what it means to pop the last route.
| /// | ||
| /// If [Route.willPop] return [bubble] then the back button will be handled | ||
| /// by the [SystemNavigator], which will usually close the application. | ||
| bubble, |
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.
We need to clarify what this means if there are nested navigators. I would think that we'd want bubble to mean: defer to the parent navigator or the SystemNavigator if there's no parent.
|
LGTM |
* Revert "Make plugins add their repos to projects in the consuming app (#11447)" This reverts commit abe1e25. * Revert "Support for custom build types on Android (#11354)" This reverts commit 87eec71. * Revert "add a profile() method (#11443)" This reverts commit 561d17a. * Revert "Fix documentation based on dartdoc's warnings (#11428)" This reverts commit 6655074. * Revert "Improve some docs around WillPopScope. (#11429)" This reverts commit 58a28a2. * Revert "temporarily disable broken driver test in integration_ui (#11440)" This reverts commit 764515e. * Revert "style fix" This reverts commit 00bfc86. * Revert "tests for waitFor/waitForAbsent" This reverts commit 31d2ee9. * Revert "Always evaluate the finder in `driver.waitFor()` and `driver.waitForAbsent()`" This reverts commit 11d7c79.
...and break the navigator<->routes circular dependency.
This is a step towards fixing #9577 but doesn't yet do so.