-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Pass RouteSettings to the internal Route in showCupertinoModalPopup #56024
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
Pass RouteSettings to the internal Route in showCupertinoModalPopup #56024
Conversation
|
This pull request has not been updated in a while. Please update this pull request to receive results from Gold, or close it. |
|
Hi @goderbauer, is the a change I can get a review? the code is not a huge change but helps to 1:1 the Cupertino and Material APIs |
| ImageFilter filter, | ||
| bool useRootNavigator = true, | ||
| bool semanticsDismissible, | ||
| RouteSettings settings, |
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.
To keep the naming consistent with the other showFoo methods, can we also call this here routeSettings?
goderbauer
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
|
This pull request is not suitable for automatic merging in its current state.
|
|
This pull request is not suitable for automatic merging in its current state.
|
Description
In this PR I add the missing
RouteSettingsparameter to theshowCupertinoModalPopupmethod.This parameter already existed in the internal
_CupertinoModalPopupRoutebut it was not exposed.It is useful to expose this parameter to provide the route name to the newly created
Route.As example, the Material
showDialogfunction acceptsRouteSettingsas well.Related Issues
No related issues.
Tests
Added a test that obtains the route name from the
RouteSettingspassed to theshowCupertinoModalPopupcall and compares it to the expected value, to verify that the value is correctly passed.Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]). This will ensure a smooth and quick review process.///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.