[英]How to open a link in a in-app browser window
You can achieve that using flutter_web_browser plugin which opens web page in-app in Android chrome tabs style.您可以使用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:结果:
Hope this helps.希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.