/// The widget fill all available space, the parent of this object must provide bounded layout
/// constraints.
///
/// AndroidView participates in Flutter's [GestureArena]s, and dispatches touch events to the
/// Android view iff it won the arena. Specific gestures that should be dispatched to the Android
/// view can be specified in [AndroidView.gestureRecognizers]. If
/// [AndroidView.gestureRecognizers] is empty, the gesture will be dispatched to the Android
/// view iff it was not claimed by any other gesture recognizer.
///
/// The Android view object is created using a [PlatformViewFactory](/javadoc/io/flutter/plugin/platform/PlatformViewFactory.html).
/// 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-).
///
...
...
@@ -48,7 +41,7 @@ import 'framework.dart';
classAndroidViewextendsStatefulWidget{
/// Creates a widget that embeds an Android view.
///
/// The `viewType`, `hitTestBehavior`, and `gestureRecognizers` parameters must not be null.
/// The `viewType` and `hitTestBehavior` parameters must not be null.
/// If `creationParams` is not null then `creationParamsCodec` must not be null.
AndroidView({
Keykey,
...
...
@@ -56,12 +49,10 @@ class AndroidView extends StatefulWidget {
/// Passed as the args argument of [PlatformViewFactory#create](/javadoc/io/flutter/plugin/platform/PlatformViewFactory.html#create-android.content.Context-int-java.lang.Object-)
///
/// This can be used by plugins to pass constructor parameters to the embedded Android view.
...
...
@@ -125,8 +105,7 @@ class _AndroidViewState extends State<AndroidView> {
Widgetbuild(BuildContextcontext){
returnnew_AndroidPlatformView(
controller:_controller,
hitTestBehavior:widget.hitTestBehavior,
gestureRecognizers:widget.gestureRecognizers,
hitTestBehavior:widget.hitTestBehavior
);
}
...
...
@@ -203,28 +182,20 @@ class _AndroidPlatformView extends LeafRenderObjectWidget {