Skip to content

Make popup menus avoid display features#98981

Merged
fluttergithubbot merged 4 commits intoflutter:masterfrom
andreidiaconu:foldable_support_popup_menu
Mar 28, 2022
Merged

Make popup menus avoid display features#98981
fluttergithubbot merged 4 commits intoflutter:masterfrom
andreidiaconu:foldable_support_popup_menu

Conversation

@andreidiaconu
Copy link
Contributor

This PR makes popup menus avoid overlapping display features.

Here is an example of showing a popup menu on one of the screens, instead of the middle of the screen (where the example device has a display feature):

Screenshot_1645622794

This is split from a larger PR for foldable support in order to make it easier to review (#77156).

Issues that will be fixed by this PR:

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 Feb 23, 2022
@andreidiaconu andreidiaconu marked this pull request as ready for review February 23, 2022 14:17
@andreidiaconu
Copy link
Contributor Author

This was split from #92909 as popup menus have less in common with modal routes than I initially considered. @Piinks @goderbauer

@HansMuller HansMuller requested review from Piinks and gspencergoog and removed request for gspencergoog February 25, 2022 23:01
@Piinks Piinks added a: layout SystemChrome and Framework's Layout Issues c: new feature Nothing broken; request for a new capability labels Mar 3, 2022
@andreidiaconu
Copy link
Contributor Author

@Piinks Please let me know if there are any other changes I should make.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

Thank you for the updates! And thank you for managing this marathon of changes to enable these features. 🎉

Flutter_LGTM

@Piinks Piinks requested a review from goderbauer March 22, 2022 22:22
@Piinks
Copy link
Contributor

Piinks commented Mar 22, 2022

cc @goderbauer for secondary review, please and thanks. :)

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

@Piinks
Copy link
Contributor

Piinks commented Mar 28, 2022

@andreidiaconu can you rebase this PR? It looks like the G testing shard is stuck here, and the un-sticking tool is not fixing it.

@andreidiaconu andreidiaconu force-pushed the foldable_support_popup_menu branch from 2c625b7 to 2c9a0d4 Compare March 28, 2022 19:06
@andreidiaconu
Copy link
Contributor Author

@andreidiaconu can you rebase this PR? It looks like the G testing shard is stuck here, and the un-sticking tool is not fixing it.

Rebased

engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Mar 29, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: layout SystemChrome and Framework's Layout Issues c: new feature Nothing broken; request for a new capability 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.

4 participants