Skip to content

Fix SliverMainAxisGroup and SliverCrossAxisGroup gestures' local positions. #174265

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ksokolovskyi
Copy link
Contributor

Fixes #174262
Fixes #173029

  • Adds missing paintOffset when hit testing children in SliverMainAxisGroup and SliverCrossAxisGroup
  • Adds regression tests

Pre-launch Checklist

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. Comments from the gemini-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.

@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. labels Aug 22, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot 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

This pull request correctly fixes an issue with gesture local positions in SliverMainAxisGroup and SliverCrossAxisGroup by providing the necessary paintOffset during hit testing. The changes are straightforward and well-implemented. Additionally, the new regression tests are comprehensive, covering various axes, scroll directions, and scrolling scenarios, which ensures the fix is robust. The code quality is excellent, and I have no further suggestions for improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
1 participant