Post 具有基本身份验证的WebviewScaffold-如何使用参数发布请求
我正在加载具有基本身份验证的网页,如下所示:Post 具有基本身份验证的WebviewScaffold-如何使用参数发布请求,post,flutter,webviewscaffold,Post,Flutter,Webviewscaffold,我正在加载具有基本身份验证的网页,如下所示: @override Widget build(BuildContext context) { return new WebviewScaffold( appBar: new AppBar( title: new Text(“Web View”), centerTitle: true, backgroundColor: Colors.red[900], eleva
@override
Widget build(BuildContext context) {
return new WebviewScaffold(
appBar: new AppBar(
title: new Text(“Web View”),
centerTitle: true,
backgroundColor: Colors.red[900],
elevation: 0.0,
),
url: widget.url,
withJavascript: true,
withZoom: false,
clearCookies: true,
headers: {‘Authorization’: ‘Basic ’ + base64Encode(utf8.encode(‘$widget.user:$widget.pass’))},
);
}
对于另一个url,我想发出post请求并发送参数,是否可以使用WebviewScaffold