- 30 Jan, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 29 Jan, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 07 Jan, 2019 1 commit
-
-
Alexandre Ardhuin authored
-
- 10 Nov, 2018 2 commits
-
-
Amir Hardon authored
-
Amir Hardon authored
Adds a note mentioning that this is still a release preview.
-
- 08 Nov, 2018 1 commit
-
-
Amir Hardon authored
-
- 02 Nov, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 01 Nov, 2018 1 commit
-
-
Amir Hardon authored
-
- 31 Oct, 2018 3 commits
-
-
Amir Hardon authored
Re-landing #23412 with a fix to the PlatformLayer's addToScene signature. #23412 was broken by the change to Layer done in #23434. It seemed green as the presubmits were done before #23434 was landed, and when #23412 landed it broke the build. Reverts #23779
-
Amir Hardon authored
This reverts commit 67ffe1c2.
-
Amir Hardon authored
This PR adds the full framework stack (layer->render object->widget, and service) for embedding iOS views with minimal functionality. I allowed myself to throw the entire framework stack in one PR since we're mostly mirroring the structure we already established for embedded Android views, so this PR is a little bigger than usual. I'm happy to break it down to the different pieces of the stack if reviewers prefer. Specifically this PR adds: * A UiKitView widget for embedding a UIView in the widget tree. * A RenderUiKitView which is the render object for showing a UIView. * A PlatformViewLayer which denotes the position of a UIView in the layer tree. * The iOS platform_views system channel client code in services/platform_views.dart * Splits the fake platform views controller to an Android and iOS controllers. TBD in following PRs: * Plumb the layout direction all the way to the platform view (currently there is still no engine support for it). * Integrate with gesture arenas (engine support is still missing as well).
-
- 16 Oct, 2018 1 commit
-
-
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.
-
- 14 Sep, 2018 1 commit
-
-
Michael Goderbauer authored
-
- 12 Sep, 2018 1 commit
-
-
Alexandre Ardhuin authored
* enable lint unnecessary_new * fix tests * fix tests * fix tests
-
- 07 Sep, 2018 1 commit
-
-
Alexandre Ardhuin authored
* lint unnecessary_new on samples * fix tests
-
- 06 Sep, 2018 1 commit
-
-
Amir Hardon authored
This recognizer can be passed in AndroidView's gesureRecognizers when we want all touch events in the view bounds to be immediately dispatched to the Android view.
-
- 05 Sep, 2018 1 commit
-
-
Amir Hardon authored
-
- 29 Aug, 2018 2 commits
-
-
Alexander Aprelev authored
This is follow-up to https://github.com/flutter/flutter/pull/21143.
-
Alexander Aprelev authored
* Roll engine to 56139397e6ae1257bdabd1ef79ff7aca96c67d4.6 Changes since last roll: ``` 56139397e Roll src/third_party/skia 7ba1d64f0706..5f0726b01019 (12 commits) (#6104) 47a1ce0e6 Allow embedders to set the root surface transformation. (#6085) ``` * Roll engine to f3ff83a5db71262d240aa5337a2a9a22c73c4749. (dart roll). * Add const * Add ignore analyzer prefer_const_constructors_in_immutables
-
- 28 Aug, 2018 2 commits
-
-
Amir Hardon authored
This re-lands commit c594696f. The original PR was breaking the integration test as while the gesture was active the AndroidView's parent widget got rebuilt which disposed the _AndroidViewGestureRecognizer and dropped pointer events from that point on. This change adds a unit test that reproduces the failure case, and fixes it by not rebuilding the _AndroidViewGestureRecognizer if the list of gesture recognizers did not change.
-
Michael Goderbauer authored
This reverts commit c594696f.
-
- 27 Aug, 2018 2 commits
-
-
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.
-
amirh authored
This allows to pass construction parameters for the embedded Android view from the Dart side.
-
- 23 Aug, 2018 1 commit
-
-
amirh authored
-
- 07 Aug, 2018 2 commits
-
-
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)
-
amirh authored
-
- 28 Jul, 2018 1 commit
-
-
amirh authored
-
- 20 Jul, 2018 1 commit
-
-
amirh authored
RenderAndroidView is responsible for sizing and displaying an embedded Android view. AndroidView is responsible for creating and disposing the Android view and is using RenderAndroidView to display it.
-