launchTelURL static method

Future<void> launchTelURL(
  1. String phone
)

调起拨号页

Implementation

static Future<void> launchTelURL(String phone) async {
  final Uri uri = Uri.parse('tel:$phone');
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  } else {
    AppLog.d("拨号失败!");
  }
}