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
make ModalBottomSheetRoute public #108112
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). 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. |
Hey @stuartmorgan I'm not sure whom to tag / ask for review. Can you please help me out. |
fly-by comment: @The-Redhat can you please take a look at the failing analyzer check and fix the reported issue? Also, please address the issue of missing tests (see comment by flutter-dashboard) before asking for review. |
Hey @HansMuller and @chunhtai can you please guide me on how a test for this change can look like. |
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 write a test, you can use normal Navigator.push to open the modal bottom sheet and verify it opens as expected. You also want to verify the parameter works too.
everything fixed. @chunhtai can you please review the mr |
Hey @chunhtai is there something I have to do on my end? |
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
Co-authored-by: chunhtai <47866232+chunhtai@users.noreply.github.com>
@chunhtai everything is fixed now :) |
auto label is removed for flutter/flutter, pr: 108112, due to - Please get at least one approved review if you are already a member or two member reviews if you are not a member before re-applying this label. Reviewers: If you left a comment approving, please use the "approve" review action instead. |
auto label is removed for flutter/flutter, pr: 108112, due to Validations Fail. |
cc @goderbauer for a secondary review |
@goderbauer do you have some time to check this PR? |
would love to see this! eta until merge? |
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
Co-authored-by: Michael Goderbauer <goderbauer@google.com>
Hey @goderbauer I took care of your review comments |
Would love to see this merged 🚀 |
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 PR breaks the https://pub.dev/packages/modal_bottom_sheet package as it contains the same class. From the public available information this package is used in 12k open source projects hosted in github. It would be great if we can come up with a solution before it gets out of hand in the packages repo: |
Currently it is not possible to use the ModalBottomSheetRoute in named routes (f.e. in the auto_route package) because it is private. In contrast the DialogRoute is public and therefore can be used.
This PR makes the
ModalBottomSheetRoute
public.Related Issues
Pre-launch Checklist
///
).