2

我正在加载一个带有基本身份验证的网页,如下所示:

@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?

4

0 回答 0