Skip to content

Conversation

@moffatman
Copy link
Contributor

Needed to prepare framework for engine changes to support trackpad gestures (flutter/engine#28571)

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 a: text input Entering text in a text field or keyboard related problems f: focus Focus traversal, gaining or losing focus f: gestures flutter/packages/flutter/gestures repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Jan 27, 2022
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

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

Add comment for linter comments per style guide.

@moffatman moffatman force-pushed the trackpad_gestures_prep branch from d038e1d to 05e8cb0 Compare January 28, 2022 04:46
Copy link
Contributor

@dkwingsmt dkwingsmt left a comment

Choose a reason for hiding this comment

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

LGTM

return buttons == 0 ? kPrimaryButton : buttons;
case PointerDeviceKind.unknown:
// ignore: no_default_cases, to allow adding new device types to [PointerDeviceKind].
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

is this temporary? if so please leave a todo here with a link to the issue where the work is happening

Copy link
Contributor

Choose a reason for hiding this comment

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

(same in the others)

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we make it permanent? Because this enum is always subject to adding new options.

Or what if we just remove unknown, since that's what "unknown" is for.

Copy link
Contributor

Choose a reason for hiding this comment

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

removing "unknown" seems fine to me, i don't really understand how "unknown" would ever get set in the first place

@Hixie
Copy link
Contributor

Hixie commented Jan 28, 2022

IF this change is temporary and there's a commitment to a timeline to removing it:

test-exempt: temporary code to allow rolling
LGTM

@dkwingsmt dkwingsmt merged commit f70f0ae into flutter:master Feb 1, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 1, 2022
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Mar 8, 2022
…r#97350)

* PointerDeviceKind and ui.PointerChange forwards-compatibility

* Add link to trackpad gestures issue

* Add TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: text input Entering text in a text field or keyboard related problems f: focus Focus traversal, gaining or losing focus f: gestures flutter/packages/flutter/gestures repository. f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants