• Amir Hardon's avatar
    AndroidView touch support. · ccaa0636
    Amir Hardon authored
    This PR adds 2 features to RenderAndroidView and AndroidView:
    
    1. Hit testing behavior
    Adds a `PlatformViewHitTestBehavior` which is similar to
    `HitTestBehavior` without the `deferToChild` option (as platform views
    don't have child render objects) and with a `transparent` option which
    prevents it from forwarding any events to the Android view.
    
    2. MotionEvent recomposing logic
    FlutterView and the framework `converter.dart` are working together to
    transform each Android MotionEvent object into one or more
    `PointerEvent` objects.
    
    This PR adds the reverse logic (in _MotionEventDispatcher which is used
    by RenderAndroidView) which turns a stream of PointerEvent objects into
    MotionEvent objects.
    
    The correctness of the recomposing logic is tested in an integration
    test which will land in a separate PR (the unit test PR is pretty big,
    trying to keep as many bite-size PRs for reviewer's convenience)
    ccaa0636
Name
Last commit
Last update
..
animated_size.dart Loading commit data...
binding.dart Loading commit data...
box.dart Loading commit data...
custom_layout.dart Loading commit data...
custom_paint.dart Loading commit data...
debug.dart Loading commit data...
debug_overflow_indicator.dart Loading commit data...
editable.dart Loading commit data...
error.dart Loading commit data...
flex.dart Loading commit data...
flow.dart Loading commit data...
image.dart Loading commit data...
layer.dart Loading commit data...
list_body.dart Loading commit data...
list_wheel_viewport.dart Loading commit data...
object.dart Loading commit data...
paragraph.dart Loading commit data...
performance_overlay.dart Loading commit data...
platform_view.dart Loading commit data...
proxy_box.dart Loading commit data...
rotated_box.dart Loading commit data...
shifted_box.dart Loading commit data...
sliver.dart Loading commit data...
sliver_fill.dart Loading commit data...
sliver_fixed_extent_list.dart Loading commit data...
sliver_grid.dart Loading commit data...
sliver_list.dart Loading commit data...
sliver_multi_box_adaptor.dart Loading commit data...
sliver_padding.dart Loading commit data...
sliver_persistent_header.dart Loading commit data...
stack.dart Loading commit data...
table.dart Loading commit data...
table_border.dart Loading commit data...
texture.dart Loading commit data...
tweens.dart Loading commit data...
view.dart Loading commit data...
viewport.dart Loading commit data...
viewport_offset.dart Loading commit data...
wrap.dart Loading commit data...