How to open app links in flutter webview?

前端 未结 3 666
谎友^
谎友^ 2021-02-03 12:45

In Flutter, I use the flutter webview plugin to launch a url like:

flutterWebviewPlugin.launch(url)

or

WebviewScaffold(
  url:          


        
3条回答
  •  粉色の甜心
    2021-02-03 13:47

    You can use web plugin like

     @override
     Widget build(BuildContext context) {
       String url = widget.url;
       return Scaffold(
        body: Center(
        child : WebviewScaffold(
          url: "https://google.com",
          appBar: new AppBar(
            title: new Text(widget.title),
          ),
          withZoom: true,
          withLocalStorage: true,
         )
       ),
     );
    }
    

提交回复
热议问题