Flutter 发送带有附件颤振的电子邮件(IOS)

Flutter 发送带有附件颤振的电子邮件(IOS),flutter,flutter-dependencies,Flutter,Flutter Dependencies,在Flatter(IOS)中发送电子邮件时出现问题。我使用flatter\u email\u发送者库 Future<void> send() async { final Email email = Email( body: _bodyController.text, subject: _subjectController.text, recipients: [_recipientController.text], attachm

在Flatter(IOS)中发送电子邮件时出现问题。我使用flatter\u email\u发送者库

Future<void> send() async {
    final Email email = Email(
      body: _bodyController.text,
      subject: _subjectController.text,
      recipients: [_recipientController.text],
      attachmentPath: attachment,
      isHTML: isHTML,
    );
    await FlutterEmailSender.send(email);
  }

button... onPressed: send()
==> Unhandled Exception: PlatformException(not_available, No email clients found!, null)
Future send()异步{
最终电子邮件=电子邮件(
正文:_bodyController.text,
主题:_subjectController.text,
收件人:[[u recipientController.text],
附件路径:附件,
isHTML:isHTML,
);
等待电子邮件发件人。发送(电子邮件);
}
按钮onPressed:send()
==>未处理的异常:PlatformException(不可用,未找到电子邮件客户端!),null)

我在iOS上也遇到了同样的问题。这是因为iOS没有设置默认的邮件应用程序。你在setting app上设置了吗?

你在iOS模拟器上尝试了吗?我的问题解决了。根本原因是我忘了在iOS中设置电子邮件。谢谢。嗨,陈德潭。我的问题解决了。非常感谢你!