octicon-rss(16/)
You've already forked rive-flutter
mirror of
https://github.com/rive-app/rive-flutter.git
synced 2025-11-10 01:57:22 +08:00
This PR adds hit testing to Flutter by overriding `hitTestSelf` on the Rive RenderObject. Currently, the hit area is the entire bounding box of the canvas. This means that when a Rive animation is rendered above any other Flutter content (for example, a Stack) all hits are absorbed by Rive and do not pass through. With this change, Rive will only absorb hits if the pointer comes in contact with a hittable Rive element. With this change, `handleEvent` will only be called if `hitTestSelf` returns true. There is some duplicate work here as `_processEvent` already performs similar hit test logic, which we can look at optimizing. But `hitTest` needed to be separate method call, as `hitTestSelf` is called before `handleEvent` and `handleEvent` sends additional information (whether it's a pointer down/up etc.). Diffs= 95beaa4f5 feat: add flutter hit test self on rive render object (#6341) bd71143bc chore: fix broken docs link (#6360) Co-authored-by: Gordon <pggordonhayes@gmail.com>
48 lines
1.7 KiB
Plaintext
48 lines
1.7 KiB
Plaintext
PODS:
|
|
- audio_session (0.0.1):
|
|
- FlutterMacOS
|
|
- FlutterMacOS (1.0.0)
|
|
- just_audio (0.0.1):
|
|
- FlutterMacOS
|
|
- path_provider_foundation (0.0.1):
|
|
- Flutter
|
|
- FlutterMacOS
|
|
- rive_common (0.0.1):
|
|
- FlutterMacOS
|
|
- url_launcher_macos (0.0.1):
|
|
- FlutterMacOS
|
|
|
|
DEPENDENCIES:
|
|
- audio_session (from `Flutter/ephemeral/.symlinks/plugins/audio_session/macos`)
|
|
- FlutterMacOS (from `Flutter/ephemeral`)
|
|
- just_audio (from `Flutter/ephemeral/.symlinks/plugins/just_audio/macos`)
|
|
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
|
|
- rive_common (from `Flutter/ephemeral/.symlinks/plugins/rive_common/macos`)
|
|
- url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`)
|
|
|
|
EXTERNAL SOURCES:
|
|
audio_session:
|
|
:path: Flutter/ephemeral/.symlinks/plugins/audio_session/macos
|
|
FlutterMacOS:
|
|
:path: Flutter/ephemeral
|
|
just_audio:
|
|
:path: Flutter/ephemeral/.symlinks/plugins/just_audio/macos
|
|
path_provider_foundation:
|
|
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin
|
|
rive_common:
|
|
:path: Flutter/ephemeral/.symlinks/plugins/rive_common/macos
|
|
url_launcher_macos:
|
|
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos
|
|
|
|
SPEC CHECKSUMS:
|
|
audio_session: dea1f41890dbf1718f04a56f1d6150fd50039b72
|
|
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
|
|
just_audio: 9b67ca7b97c61cfc9784ea23cd8cc55eb226d489
|
|
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
|
|
rive_common: 0f0aadf670f0c6a7872dfe3e6186f112a5319108
|
|
url_launcher_macos: d2691c7dd33ed713bf3544850a623080ec693d95
|
|
|
|
PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7
|
|
|
|
COCOAPODS: 1.11.3
|