1. 16 Oct, 2018 2 commits
    • Alexandre Ardhuin's avatar
      Prefer void to null (#22977) · 0fb84e96
      Alexandre Ardhuin authored
      * Future<void> main
      
      * Future<void>.delayed
      
      * prefer_void_to_Null
      
      * address review comments
      0fb84e96
    • Amir Hardon's avatar
      Make AndroidView take gesture recognizer factories. (#21657) · 707eaf5e
      Amir Hardon authored
      Before this PR AndroidView's gestureRecognizers field was a list of
      gesture recognizers. This was problematic as when the widget was rebuilt
      with the same gesture recognizer instances we would try to re-join the
      recognizers to a gesture arena team and crash (as a OneSeqeunceGestureRecognizer
      team can only be set once).
      
      With this change, we instead take a set of factories.
      This allows AndroidView to create the gesture recognizers just before
      adding them to the team, and thus be sure that they are only added once to a
      team.
      
      The factories are identified by the type of the object they create, this
      allows AndroidView to know when it is given an equivalent set of gesture
      recognizer factories, and do nothing in that case.
      707eaf5e
  2. 01 Oct, 2018 1 commit
  3. 14 Sep, 2018 1 commit
  4. 12 Sep, 2018 1 commit
  5. 05 Sep, 2018 1 commit
  6. 31 Aug, 2018 1 commit
  7. 28 Aug, 2018 2 commits
  8. 27 Aug, 2018 1 commit
    • amirh's avatar
      Make AndroidView participate in gesture arenas. (#20917) · c594696f
      amirh authored
      Pointer events are dispatched to the Android view only if it won
      Flutter's gesture arena for the pointer.
      Specific gestures that should be dispatched to the android view can be
      specified with the gestureRecognizers parameter.
      c594696f
  9. 23 Aug, 2018 1 commit
  10. 08 Aug, 2018 1 commit
  11. 07 Aug, 2018 1 commit
    • 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
  12. 20 Jul, 2018 1 commit