url_launcher
使用系统自带的浏览器打开网页
dependencies:
url_launcher: ^6.0.8
方法:
launchURL(url) async {
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
使用:
launchURL("https://www.callmysoft.com/" );