How to add a Webview in Flutter?

前端 未结 7 1612
逝去的感伤
逝去的感伤 2020-12-15 17:43

I know its possible to add a WebView as a full page but couldn\'t find any sample code to do it. I assume you could use a PageView as it\'s base but not sure how to call the

相关标签:
7条回答
  • 2020-12-15 18:41

    Flutter doesn't have built-in support for embedded WebViews. Follow issue 730 for updates.

    You can still show web content in your app, but you'll have to leave Flutter-land using the plugin system.

    If you just want to open a browser, you can use the url_launcher Flutter plugin.

    If you want to do something fancier (perhaps you don't want a visible address bar), you could implement a custom UIViewController (iOS example) and Activity (Android example) and use the plugin API to launch into these.

    0 讨论(0)
提交回复
热议问题