url_launcher官方GitHub地址
import 'package:url_launcher/url_launcher.dart';
// 拨打电话
_dial() async {
const url = 'tel:4006820016';
if (await canLaunch(url)) {
await launch(url);
} else {
throw 'Could not launch $url';
}
}
网友评论