launchApp static method
调起其他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("未安装");
}
}