Flutter share_plus包直接打开快速分享而不是选项

问题描述 投票:0回答:1

我是 flutter 的新用户。我一直在使用 share_plus 包以便通过 Share.shareXfiles 导出文件。最近,我使用了 API 35 的新模拟器,现在导出直接进入快速共享,但我不想要这样,如何只启用电子邮件?

我过去使用了 share_plus 包方法来做到这一点。我查看了 pub dev 看看是否有什么东西,但我可能是瞎子。

这是我使用的一个功能:

Future<void> shareGeoJsonFile(String filePath) async {
  // Share the file externally
  await Share.shareXFiles(
    [XFile(filePath)],
    subject: 'Exported survey data',
    text: 'Here is the GeoJSON data for the survey.',
  );
}
flutter flutter-packages
1个回答
0
投票

这是一个愚蠢的错误,该应用程序有一个邮件应用程序没有显示,但添加 gmail 使该选项显示

© www.soinside.com 2019 - 2024. All rights reserved.