我想知道如何在应用程序内浏览器中打开链接,就像这样:
你可以使用以下方法来实现flutter_web_browser以 Android chrome 选项卡样式在应用程序内打开网页的插件。
Ex:
body: new Center(
child: new RaisedButton(
onPressed: () => openBrowserTab(),
child: new Text('Open website'),
),
),
openBrowserTab() async {
await FlutterWebBrowser.openWebPage(url: "https://gadgets.ndtv.com/", androidToolbarColor: Colors.deepPurple);
}
Result:
希望这可以帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)