Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ModalBottomSheetRoute: Remove gap at screen bottom with useSafeArea: true #122118

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

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

chrisbobbe
Copy link
Contributor

Fixes #121554.

With useSafeArea: true, the added SafeArea now has bottom: false, to prevent a gap from appearing between the bottom edge of the sheet and the bottom edge of the screen, across the system intrusion there.

The useSafeArea: false case still has a bug not addressed here; that's #121752. I plan to submit a separate fix for that.

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.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Mar 7, 2023
Copy link
Member

@gnprice gnprice left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

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

LGTM

@gnprice gnprice added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 7, 2023
… true`

Fixes flutter#121554.

With `useSafeArea: true`, the added `SafeArea` now has
`bottom: false`, to prevent a gap from appearing between the bottom
edge of the sheet and the bottom edge of the screen, across the
system intrusion there.

The `useSafeArea: false` case still has a bug not addressed here;
that's flutter#121752. I plan to submit a separate fix for that.
@gnprice gnprice force-pushed the pr-bottom-sheet-remove-gap branch from 39e73ee to e10cd03 Compare March 8, 2023 02:29
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 8, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Mar 8, 2023

auto label is removed for flutter/flutter, pr: 122118, due to - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label.

@gnprice
Copy link
Member

gnprice commented Mar 8, 2023

@Hangyujin Would you take a look at the Google testing failure? This PR was only touching the useSafeArea: true case, but it seems something still broke with that.

@hannah-hyj hannah-hyj added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 8, 2023
@hannah-hyj
Copy link
Member

@gnprice The google testing failure is expected and manually approved.

@gnprice
Copy link
Member

gnprice commented Mar 8, 2023

Excellent. Thanks for your help!

@auto-submit auto-submit bot merged commit 23b7bbd into flutter:master Mar 8, 2023
@chrisbobbe chrisbobbe deleted the pr-bottom-sheet-remove-gap branch March 8, 2023 19:42
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 9, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 10, 2023
chrisbobbe added a commit to chrisbobbe/zulip-flutter that referenced this pull request Mar 10, 2023
This gets us flutter/flutter@23b7bbd89 (flutter/flutter#122118),
which we'll use to make a nice prototype for the message action
sheet, coming soon.
chrisbobbe added a commit to chrisbobbe/zulip-flutter that referenced this pull request Mar 10, 2023
This gets us flutter/flutter@23b7bbd89 (flutter/flutter#122118),
which we'll use to make a nice prototype for the message action
sheet, coming soon.
hannah-hyj pushed a commit to hannah-hyj/flutter that referenced this pull request Mar 11, 2023
… true` (flutter#122118)

ModalBottomSheetRoute: Remove gap at screen bottom with `useSafeArea: true`
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 11, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Mar 12, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 10, 2023
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.

ModalBottomSheetRoute: useSafeArea puts gap below sheet
3 participants