Skip to content

✨ Introduces PositionedGestureDetails#160714

Merged
auto-submit[bot] merged 34 commits into
flutter:masterfrom
AlexV525:feat/gesture-details-with-positions
Apr 22, 2025
Merged

✨ Introduces PositionedGestureDetails#160714
auto-submit[bot] merged 34 commits into
flutter:masterfrom
AlexV525:feat/gesture-details-with-positions

Conversation

@AlexV525

@AlexV525 AlexV525 commented Dec 21, 2024

Copy link
Copy Markdown
Member

Resolves #101530

PositionedGestureDetails is an abstract interface that is meant to contain positions for pointer events.

Pre-launch Checklist

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

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: scrolling Viewports, list views, slivers, etc. f: gestures flutter/packages/flutter/gestures repository. labels Dec 21, 2024
@AlexV525 AlexV525 force-pushed the feat/gesture-details-with-positions branch from a13e863 to efb7cae Compare December 23, 2024 03:11
@AlexV525

Copy link
Copy Markdown
Member Author

The request was shaped and we can discuss the idea before it gets completely ready. This is similar to the previous request #101665

cc @goderbauer @justinmc

@nate-thegrate nate-thegrate self-requested a review December 23, 2024 20:27
@nate-thegrate

Copy link
Copy Markdown
Contributor

@AlexV525 thanks for contributing! Go ahead and hit the "Ready for review" button when it's ready for review :)

@AlexV525

AlexV525 commented Dec 28, 2024

Copy link
Copy Markdown
Member Author

@AlexV525 thanks for contributing! Go ahead and hit the "Ready for review" button when it's ready for review :)

Previously @goderbauer had an opposite opinion in adding this abstraction #101665 (comment). I'd like to hear from others before we go further and add tests for it.

EDIT: Tests were added.

@AlexV525 AlexV525 marked this pull request as ready for review December 30, 2024 02:20

@nate-thegrate nate-thegrate left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks fantastic! I just have a few bits of feedback, mostly relating to Diagnosticable stuff.

I'm a huge fan of this API, for reasons described in the linked issue.

Comment thread packages/flutter/lib/src/gestures/drag_details.dart Outdated
Comment thread packages/flutter/lib/src/gestures/details_with_positions.dart Outdated
Comment thread packages/flutter/lib/src/gestures/drag_details.dart Outdated
Comment thread packages/flutter/lib/src/gestures/events.dart Outdated
Comment thread packages/flutter/lib/src/gestures/tap_and_drag.dart Outdated
Comment thread packages/flutter/test/gestures/details_with_positions_test.dart Outdated
@AlexV525 AlexV525 requested a review from nate-thegrate January 7, 2025 14:19

@nate-thegrate nate-thegrate left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the updates!

I found a few more properties to change; after which this PR will be ready to merge IMO.

Comment thread packages/flutter/lib/src/gestures/tap.dart Outdated
Comment thread packages/flutter/lib/src/gestures/tap.dart Outdated
Comment thread packages/flutter/lib/src/gestures/scale.dart Outdated
Comment thread packages/flutter/lib/src/gestures/scale.dart Outdated
@AlexV525

AlexV525 commented Jan 8, 2025

Copy link
Copy Markdown
Member Author

I found a few more properties to change

I used to think they were not my updates, I just realized I changed them 🤣

@nate-thegrate nate-thegrate left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Flutter_LGTM

Thanks for the contribution!

@AlexV525 AlexV525 added the autosubmit Merge PR when tree becomes green via auto submit App label Jan 8, 2025
@auto-submit auto-submit Bot added this pull request to the merge queue Jan 8, 2025
@matanlurey

Copy link
Copy Markdown
Contributor

Given this comment:

Previously @goderbauer had an opposite opinion in adding this abstraction #101665 (comment). I'd like to hear from others before we go further and add tests for it.

I'd like to ask you wait for @goderbauer to review the PR before landing it. Thank you.

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 23, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 27, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 27, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: gestures flutter/packages/flutter/gestures repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generalize gesture details that concerns cartesian positioning in a common interface

8 participants