Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/file/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Flutter 如何在使用Flatter windows软件包url启动器撰写邮件时附加文件?_Flutter_File_Flutter Windows_Url Launcher - Fatal编程技术网

Flutter 如何在使用Flatter windows软件包url启动器撰写邮件时附加文件?

Flutter 如何在使用Flatter windows软件包url启动器撰写邮件时附加文件?,flutter,file,flutter-windows,url-launcher,Flutter,File,Flutter Windows,Url Launcher,我曾尝试使用mailer发送电子邮件,但我想先打开邮件应用程序,然后将文件归档到其中。所以我一直在使用Flatter windows软件包url启动器,但我似乎只能添加一个主题和一个正文。你能试试吗?@KrishBhanushali我尝试过使用toUri void sendMail(index)async{print(p.toUri(file[index].path));最终Uri(u emailLaunchUri=Uri(scheme:'mailto',path:,query:'body=${

我曾尝试使用mailer发送电子邮件,但我想先打开邮件应用程序,然后将文件归档到其中。所以我一直在使用Flatter windows软件包url启动器,但我似乎只能添加一个主题和一个正文。

你能试试吗?@KrishBhanushali我尝试过使用toUri void sendMail(index)async{print(p.toUri(file[index].path));最终Uri(u emailLaunchUri=Uri(scheme:'mailto',path:,query:'body=${p.toUri(file[index].path)}“);launch(_emailLaunchUri.toString());}但它似乎没有将文件附加到撰写邮件中