颤振网络视图插件 - 启用捏合缩放



我是小蝶的新手。我可以使用颤振网络视图插件创建一个网络视图。但我无法缩放(捏缩放(网站。有什么解决方案吗?

@override
Widget build(BuildContext context) {
return WebviewScaffold(
appBar: AppBar(
title: Text("Hi"),
actions: <Widget>[
IconButton(
icon: Icon(Icons.camera_alt),

onPressed: () => scanbarcode(),
),
SizedBox(width: 50,),
IconButton(
icon: Icon(Icons.home,color: Colors.white,),
onPressed: (){
flutterWebviewPlugin.reloadUrl("http://www.google.com");
},
),
],
),
url: urlString,
withZoom: true,
withJavascript: true,
);
}
}

试试这个

this.webView.getSettings().setBuiltInZoomControls(true);
this.webView.getSettings().setSupportZoom(true);

最新更新