我正在使用 url_launcher 在我的应用程序中发送带有系统电子邮件的电子邮件。我正在使用下面的代码,这个人做得很好。
void launchEmailSubmission() async {
final Uri params = Uri(
scheme: 'mailto',
path: 'myOwnEmailAddress@gmail.com',
);
String url = params.toString();
if (await canLaunch(url)) {
await launch(url);
} else {
print('Could not launch $url');
}
}
Run Code Online (Sandbox Code Playgroud)
但是现在我想在邮件正文框中为其提供“默认”主题和提示文本(如果提示文本不可能,则为普通文本)。
有没有办法做到这一点?