launchApp static method

Future<void> launchApp(
  1. String app
)

调起其他app

Implementation

static Future<void> launchApp(String app) async {
  final Uri uri = Uri.parse('$app://');
  bool isInstall = await canLaunchUrl(uri);
  if (isInstall) {
    await launchUrl(uri, mode: LaunchMode.externalApplication);
  } else {
    AppLog.d("未安装");
  }
}