@@ -193,9 +193,11 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
193193 WebViewMediaAutoPlaybackPolicy .alwaysPlayAllMedia);
194194 }
195195
196+ // Not yet supported on MacOS. Throws an exception.
196197 if (defaultTargetPlatform != TargetPlatform .macOS) {
197198 _controller.setBackgroundColor (
198- props.backgroundColor? .toFlutterColor () ?? Colors .transparent);
199+ props.backgroundColor? .toFlutterColor () ?? Colors .transparent,
200+ );
199201 }
200202 }
201203
@@ -212,7 +214,7 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
212214 }
213215 }
214216
215- Future <void > _loadData () {
217+ Future <void > _loadData () async {
216218 final ScopedValues scopedValues = ScopedValues .of (context);
217219 final WebViewProperties props = widget.properties;
218220 switch (props.webviewType) {
@@ -261,8 +263,11 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
261263 case WebViewType .twitter:
262264 if (! isPlatformSupportedForWebView || widget.settings.isPreview) {
263265 return const WebViewPreviewWidget (
264- icon: ImageIcon (NetworkImage (
265- 'https://img.icons8.com/color/344/twitter--v2.png' )),
266+ icon: ImageIcon (
267+ NetworkImage (
268+ 'https://img.icons8.com/color/344/twitter--v2.png' ,
269+ ),
270+ ),
266271 );
267272 }
268273
@@ -335,6 +340,10 @@ class _RawWebViewWidgetState extends State<RawWebViewWidget> {
335340 if (properties.controlForcePressGesture == true )
336341 const Factory <ForcePressGestureRecognizer >(
337342 ForcePressGestureRecognizer .new ),
343+ // const Factory<TapAndPanGestureRecognizer>(
344+ // TapAndPanGestureRecognizer.new),
345+ // const Factory<PanGestureRecognizer>(PanGestureRecognizer.new),
346+ // const Factory<EagerGestureRecognizer>(EagerGestureRecognizer.new),
338347 },
339348 );
340349 }
0 commit comments