-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[pointer_interceptor] Add platform interface #5499
[pointer_interceptor] Add platform interface #5499
Conversation
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 or stuartmorgan on the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!). 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. |
packages/pointer_interceptor/pointer_interceptor_platform_interface/README.md
Outdated
Show resolved
Hide resolved
...eptor/pointer_interceptor_platform_interface/lib/pointer_interceptor_platform_interface.dart
Outdated
Show resolved
Hide resolved
..._interceptor/pointer_interceptor_platform_interface/lib/src/default_pointer_interceptor.dart
Outdated
Show resolved
Hide resolved
..._interceptor/pointer_interceptor_platform_interface/lib/src/default_pointer_interceptor.dart
Outdated
Show resolved
Hide resolved
...interceptor/pointer_interceptor_platform_interface/lib/src/pointer_interceptor_platform.dart
Show resolved
Hide resolved
packages/pointer_interceptor/pointer_interceptor_platform_interface/pubspec.yaml
Outdated
Show resolved
Hide resolved
packages/pointer_interceptor/pointer_interceptor_platform_interface/pubspec.yaml
Outdated
Show resolved
Hide resolved
@stuartmorgan this is ready to review again! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Happy to see the pointer_interceptor grow :P
final PointerInterceptorPlatform unimplementedPointerInterceptorPlatform = | ||
UnimplementedPointerInterceptorPlatform(); | ||
|
||
final Container testChild = Container(); | ||
expect( | ||
() => unimplementedPointerInterceptorPlatform.buildWidget( | ||
child: testChild), | ||
throwsUnimplementedError); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd add another test file: default_pointer_interceptor_test.dart
that contains pretty much the same test as this one, but expects that the return from buildWidget
is identical to testChild
(which is the pass-through feature we really care about!)
auto label is removed for flutter/packages/5499, due to This PR has not met approval requirements for merging. Changes were requested by {stuartmorgan}, please make the needed changes and resubmit this PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one nit
|
||
topics: | ||
- widgets | ||
- platform views |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: We have a policy for our federated plugins of using the plugin name (with _ converted to - to satisfy pub requirements) as one of the topics to allow finding all the related packages. So we should have - pointer-interceptor
in the list as well.
auto label is removed for flutter/packages/5499, due to - The status or check suite Linux_android custom_package_tests master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
This fails publishing; I forgot that spaces aren't allowed in topics, and apparently it's a server-side check so our dry-run publish check didn't fail. |
This reverts commit 98b85da.
Reverts #5499 Initiated by: stuartmorgan This change reverts the following previous change: Original Description: Addresses flutter/flutter#30143 by adding an iOS implementation This PR is Part 1 of #5233
I filed flutter/flutter#139305 to catch this earlier next time, and #5525 is open to re-land. |
flutter/packages@e4aaba8...bc72d15 2023-11-30 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[pointer_interceptor] Add platform interface" (flutter/packages#5524) 2023-11-30 louisehsu@google.com [pointer_interceptor] Add platform interface (flutter/packages#5499) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter from 6bf3ccd to 5e5b529 (58 revisions) (flutter/packages#5519) 2023-11-29 john@johnmccutchan.com Fix Google Maps rendering issues in TLHC mode when using LATEST renderer (flutter/packages#5408) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Another +1 for: dart-lang/pub#3537 and similar failures. |
Addresses flutter/flutter#30143 by adding an iOS implementation This PR is Part 1 of flutter#5233
Reverts flutter#5499 Initiated by: stuartmorgan This change reverts the following previous change: Original Description: Addresses flutter/flutter#30143 by adding an iOS implementation This PR is Part 1 of flutter#5233
# Below is a list of people and organizations that have contributed | ||
# to the project. Names should be added to the list like so: | ||
# | ||
# Name/Organization <email address> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably wanna put your name there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the format example.
The actual entries are below, and Google-employed contributors are covered by "Google".
flutter/packages@e4aaba8...bc72d15 2023-11-30 98614782+auto-submit[bot]@users.noreply.github.com Reverts "[pointer_interceptor] Add platform interface" (flutter/packages#5524) 2023-11-30 louisehsu@google.com [pointer_interceptor] Add platform interface (flutter/packages#5499) 2023-11-29 engine-flutter-autoroll@skia.org Roll Flutter from 6bf3ccd to 5e5b529 (58 revisions) (flutter/packages#5519) 2023-11-29 john@johnmccutchan.com Fix Google Maps rendering issues in TLHC mode when using LATEST renderer (flutter/packages#5408) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Addresses flutter/flutter#30143 by adding an iOS implementation This PR is Part 1 of flutter#5233
Reverts flutter#5499 Initiated by: stuartmorgan This change reverts the following previous change: Original Description: Addresses flutter/flutter#30143 by adding an iOS implementation This PR is Part 1 of flutter#5233
Addresses flutter/flutter#30143 by adding an iOS implementation
This PR is Part 1 of #5233
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes].CHANGELOG.md
to add a description of the change, [following repository CHANGELOG style].///
).