This may be a duplicate question as I have seen a lot of questions that has to do with iframes, webview and all that but each one gets me more confused as I study them. Currently I am making use of the WebView
widget to display a webview in my mobile app. I wish to build for the web now but WebView
is not supported for web so I have been seeking for an alternative approach. I got to know about HtmlElementView
from the flutter documentation. Trying to research into it but I can not seem to find any clear way I am supposed to use it to solve my problem.
我的守则是:
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
margin: EdgeInsets.fromLTRB(0, 15, 0, 0),
child: !kIsWeb
? WebView(
initialUrl: this.widget._url,
javascriptMode: JavascriptMode.unrestricted,
onPageStarted: this._pageStarted,
)
: HtmlElementView(
viewType: ,
),
),
),
);
}
根据我的代码,我正在建立<代码>WebView,因为没有为网站和大楼编辑<代码>。 浏览代码>。 就我所怀的仇恨来说,这在我所知的今天可以 go在<条码>上。 HtmlElementView。 从《指南》中,
我想做的是什么? 载于WebView
的内容是动态的类型,因此我希望在<代码>上填满。 HtmlElementView。 如果能帮助我这样做的话,那么我会非常赞赏任何帮助或可能帮助我的材料。 感谢。