Skip to content
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

Merged
merged 37 commits into from Oct 13, 2022
Merged

make ModalBottomSheetRoute public #108112

merged 37 commits into from Oct 13, 2022

Conversation

The-Redhat
Copy link
Contributor

@The-Redhat The-Redhat commented Jul 21, 2022

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Jul 21, 2022
@flutter-dashboard
Copy link

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.

@The-Redhat
Copy link
Contributor Author

Hey @stuartmorgan I'm not sure whom to tag / ask for review. Can you please help me out.

@goderbauer
Copy link
Member

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.

@HansMuller HansMuller requested a review from chunhtai July 22, 2022 21:42
@The-Redhat
Copy link
Contributor Author

Hey @HansMuller and @chunhtai can you please guide me on how a test for this change can look like.
Thank you for your help and have a great weekend.

Copy link
Contributor

@chunhtai chunhtai left a 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.

packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
@The-Redhat
Copy link
Contributor Author

The-Redhat commented Aug 10, 2022

everything fixed. @chunhtai can you please review the mr

@The-Redhat
Copy link
Contributor Author

Hey @chunhtai is there something I have to do on my end?

@chunhtai chunhtai self-requested a review August 29, 2022 15:43
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/test/material/bottom_sheet_test.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
packages/flutter/lib/src/material/bottom_sheet.dart Outdated Show resolved Hide resolved
The-Redhat and others added 4 commits September 19, 2022 07:39
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>
@The-Redhat
Copy link
Contributor Author

@chunhtai everything is fixed now :)

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 21, 2022
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 21, 2022
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 21, 2022

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-submit
Copy link
Contributor

auto-submit bot commented Sep 21, 2022

auto label is removed for flutter/flutter, pr: 108112, due to Validations Fail.

@chunhtai
Copy link
Contributor

cc @goderbauer for a secondary review

@The-Redhat
Copy link
Contributor Author

@goderbauer do you have some time to check this PR?

@gliitterpuke
Copy link

would love to see this! eta until merge?

@The-Redhat
Copy link
Contributor Author

Hey @goderbauer I took care of your review comments

@ryzizub
Copy link

ryzizub commented Oct 12, 2022

Would love to see this merged 🚀

Copy link
Member

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM

@goderbauer goderbauer added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 13, 2022
@auto-submit auto-submit bot merged commit 274435d into flutter:master Oct 13, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 14, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 14, 2022
@jamesblasco
Copy link
Contributor

jamesblasco commented Nov 4, 2022

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:
jamesblasco/modal_bottom_sheet#284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants