@@ -953,7 +953,7 @@ class WebKitWebViewWidgetCreationParams extends PlatformWebViewWidgetCreationPar
953953 required super .controller,
954954 super .layoutDirection,
955955 super .gestureRecognizers,
956- this .gestureBlockingPolicy = .fallbackToPluginDefault,
956+ this .uiKitGestureBlockingPolicy = .fallbackToPluginDefault,
957957 });
958958
959959 /// Constructs a [WebKitWebViewWidgetCreationParams] using a
@@ -978,22 +978,22 @@ class WebKitWebViewWidgetCreationParams extends PlatformWebViewWidgetCreationPar
978978 /// Defaults to [UiKitViewGestureBlockingPolicy.fallbackToPluginDefault] ,
979979 /// which uses the policy the plugin registers the platform view with.
980980 ///
981- /// With [UiKitViewGestureBlockingPolicy.doNotBlockGesture] , Flutter never
982- /// blocks touches that land on the web view: they are handled by the web view
983- /// and are not disambiguated through Flutter's gesture arena. That can work
984- /// around a web view that stops responding to touches, at the cost of the web
985- /// view recognizing gestures that should have been blocked.
986- final UiKitViewGestureBlockingPolicy gestureBlockingPolicy ;
981+ /// With [UiKitViewGestureBlockingPolicy.doNotBlockGesture] , Flutter blocks
982+ /// these gesture recognizers based on hit-test results instead of relying on
983+ /// Flutter's gesture arena. This can work around a web view that stops
984+ /// responding to touches, but may cause the web view to recognize a gesture
985+ /// that should have been blocked.
986+ final UiKitViewGestureBlockingPolicy uiKitGestureBlockingPolicy ;
987987
988988 @override
989- int get hashCode => Object .hash (controller, layoutDirection, gestureBlockingPolicy );
989+ int get hashCode => Object .hash (controller, layoutDirection, uiKitGestureBlockingPolicy );
990990
991991 @override
992992 bool operator == (Object other) {
993993 return other is WebKitWebViewWidgetCreationParams &&
994994 controller == other.controller &&
995995 layoutDirection == other.layoutDirection &&
996- gestureBlockingPolicy == other.gestureBlockingPolicy ;
996+ uiKitGestureBlockingPolicy == other.uiKitGestureBlockingPolicy ;
997997 }
998998}
999999
@@ -1033,7 +1033,7 @@ class WebKitWebViewWidget extends PlatformWebViewWidget {
10331033 return UiKitView (
10341034 key: key,
10351035 viewType: 'plugins.flutter.io/webview' ,
1036- gestureBlockingPolicy: _webKitParams.gestureBlockingPolicy ,
1036+ gestureBlockingPolicy: _webKitParams.uiKitGestureBlockingPolicy ,
10371037 onPlatformViewCreated: (_) {},
10381038 layoutDirection: params.layoutDirection,
10391039 gestureRecognizers: params.gestureRecognizers,
0 commit comments