如何在 flutter 中以编程方式启动消息应用程序并使用默认电子邮件地址设置 "To" 字段(目的地)?

How to launch messages app and set the "To" field (the destination) with default email address programmatically in flutter?

当用户点击“联系我们”按钮时,我想在 Android 和 iOS 中启动消息应用程序,然后在 flutter 中使用已知的电子邮件地址设置目的地。 我怎样才能做到这一点?不可能?

您可以使用 url_launcher 打开 url,您的情况如下:

final url = 'mailto:$mailAddress';
if (await canLaunch(url)) {    
  launch(url);
}