Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix SelectionArea handles overlapping context menu on Android#182663

Open
JhonaCodes wants to merge 2 commits intoflutter:masterfrom
JhonaCodes:fix/selectable-region-toolbar-overlap-168765
Open

Fix SelectionArea handles overlapping context menu on Android#182663
JhonaCodes wants to merge 2 commits intoflutter:masterfrom
JhonaCodes:fix/selectable-region-toolbar-overlap-168765

Conversation

@JhonaCodes
Copy link

This PR fixes an AndroidSelectionArea layering issue where selection handles can paint above the expanded context
menu (overflow actions), causing visual overlap and making menu actions harder to read/tap.

The change updates the overlay/show ordering so the context menu remains visually above selection handles when both are
visible.

Before

Screen.Recording.2026-02-21.at.2.55.59.am.mov

After

Screen.Recording.2026-02-21.at.2.46.22.am.mov

Fixes#168765

No changes were made in the [flutter/tests] repo.

Test-exempt: small overlay ordering change, manually validated with the issue repro.

Pre-launch Checklist

  • I read theContributor Guide and followed the process outlined there for submitting PRs.
  • I read theTree Hygiene wiki page, which explains my responsibilities.
  • I read and followed theFlutter Style Guide, includingFeatures 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 istest-exempt.
  • I followed the [breaking change policy] and added [Data Driven Fixes] where supported.
  • All existing and new tests are passing.

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

Note: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://
developers.google.com/gemini-code-assist/docs/review-github-code). Comments from thegemini-code-assist bot should
not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code
accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's
review for guidance on which automated comments should be addressed.

guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]:https://cla.developers.google.com/
[flutter/tests]:https://github.com/flutter/tests
[breaking change policy]:https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-
breaking-changes
[Discord]:https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md

@github-actionsgithub-actionsbot added the frameworkflutter/packages/flutter repository. See also f: labels. labelFeb 20, 2026
Copy link
Contributor

@gemini-code-assistgemini-code-assistbot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request correctly addresses the layering issue on Android where selection handles could appear above the context menu. By reordering the calls in_handleTouchLongPressEnd to show handles before the toolbar, the toolbar is inserted later into theOverlay and thus paints on top. This change is consistent with other interaction handlers inSelectableRegionState. My review identifies a minor formatting issue and suggests adding a regression test to ensure the fix remains robust, referencing the repository's guidelines on formatting and testing.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@gemini-code-assistgemini-code-assist[bot]gemini-code-assist[bot] left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

frameworkflutter/packages/flutter repository. See also f: labels.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Selection Handles Overlap Context Menu in SelectionArea

1 participant

@JhonaCodes

Comments


[8]ページ先頭

©2009-2026 Movatter.jp