【发布时间】:2021-06-28 00:35:15
【问题描述】:
我尝试使用“url_launcer”插件打开 url 链接以显示 pdf 文件,但 Chrome 显示“无法显示 PDF(pdf-file-name.pdf 无法打开)”通知。我可以在模拟器中手动打开链接,但是用url_launcher的启动方法无法打开。
[√] Flutter (Channel stable, 1.22.6, on Microsoft Windows [Version 10.0.18363.1440], locale en-US) [√] Android 工具链 - 为 Android 设备开发(Android SDK 版本 30.0.3)
代码:
await launch("https://test.com/getPdf/4b5f-4118-a7dd-900cc253654c.pdf");
【问题讨论】: