You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/flutter/lib/src/widgets/platform_view.dart
+3-32Lines changed: 3 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,6 @@
3
3
// found in the LICENSE file.
4
4
5
5
import'package:flutter/foundation.dart';
6
-
import'package:flutter/gestures.dart';
7
6
import'package:flutter/rendering.dart';
8
7
import'package:flutter/services.dart';
9
8
@@ -22,12 +21,6 @@ import 'framework.dart';
22
21
/// The widget fill all available space, the parent of this object must provide bounded layout
23
22
/// constraints.
24
23
///
25
-
/// AndroidView participates in Flutter's [GestureArena]s, and dispatches touch events to the
26
-
/// Android view iff it won the arena. Specific gestures that should be dispatched to the Android
27
-
/// view can be specified in [AndroidView.gestureRecognizers]. If
28
-
/// [AndroidView.gestureRecognizers] is empty, the gesture will be dispatched to the Android
29
-
/// view iff it was not claimed by any other gesture recognizer.
30
-
///
31
24
/// The Android view object is created using a [PlatformViewFactory](/javadoc/io/flutter/plugin/platform/PlatformViewFactory.html).
32
25
/// Plugins can register platform view factories with [PlatformViewRegistry#registerViewFactory](/javadoc/io/flutter/plugin/platform/PlatformViewRegistry.html#registerViewFactory-java.lang.String-io.flutter.plugin.platform.PlatformViewFactory-).
33
26
///
@@ -48,20 +41,18 @@ import 'framework.dart';
48
41
classAndroidViewextendsStatefulWidget {
49
42
/// Creates a widget that embeds an Android view.
50
43
///
51
-
/// The `viewType`, `hitTestBehavior`, and `gestureRecognizers` parameters must not be null.
44
+
/// The `viewType`and `hitTestBehavior` parameters must not be null.
52
45
/// If `creationParams` is not null then `creationParamsCodec` must not be null.
/// Passed as the args argument of [PlatformViewFactory#create](/javadoc/io/flutter/plugin/platform/PlatformViewFactory.html#create-android.content.Context-int-java.lang.Object-)
102
82
///
103
83
/// This can be used by plugins to pass constructor parameters to the embedded Android view.
@@ -125,8 +105,7 @@ class _AndroidViewState extends State<AndroidView> {
125
105
Widgetbuild(BuildContext context) {
126
106
returnnew_AndroidPlatformView(
127
107
controller: _controller,
128
-
hitTestBehavior: widget.hitTestBehavior,
129
-
gestureRecognizers: widget.gestureRecognizers,
108
+
hitTestBehavior: widget.hitTestBehavior
130
109
);
131
110
}
132
111
@@ -203,28 +182,20 @@ class _AndroidPlatformView extends LeafRenderObjectWidget {
0 commit comments