[英]New tab not opening in flutter web on iOS environment (safari)
I have a flutter web app with a button that opens a link in a new chrome (or any) tab.我有一个颤动的网络应用程序,带有一个按钮,可以在新的 chrome(或任何)选项卡中打开一个链接。 This button works fine in Windows/Android and iPhones but the issue comes up on iPads.
此按钮在 Windows/Android 和 iPhone 上运行良好,但问题出现在 iPad 上。 When I click the button, it says loading (expected and working) but it doesn't open/redirect to the new link.
当我单击该按钮时,它显示正在加载(预期和工作),但它没有打开/重定向到新链接。 I tried with flutter HTML package (works in Windows/Android and iPhones) but doesn't work on iPad again.
我尝试使用 Flutter HTML 包(适用于 Windows/Android 和 iPhone),但不能再次在 iPad 上运行。 Same with url_launcher package.
与 url_launcher 包相同。
Is there any way to work this out?有没有办法解决这个问题?
You can check the deployed website here .您可以在此处查看已部署的网站。
If you scroll down the landing page, you'll find a Brochure
button.如果您向下滚动登录页面,您会发现一个
Brochure
按钮。 Click on it and it opens a new page.单击它,它会打开一个新页面。 Input email and phone (These data aren't stored or sent anywhere the backend isn't hooked up yet, just for validation).
输入电子邮件和电话(这些数据不会存储或发送到后端尚未连接的任何地方,仅用于验证)。 And click on get brochure.
然后点击获取小册子。 Check if it works on your iPad or so
检查它是否适用于您的 iPad 左右
Here are code snippets:以下是代码片段:
After a bit of research, I found that your problem may be due to asynchronous calling of a previous process [1] .经过一番研究,我发现您的问题可能是由于异步调用先前进程[1]造成的。 Could you try commenting out the entire Firebase call and just link to https://flutter.dev/ instead?
您可以尝试注释掉整个 Firebase 调用,然后直接链接到https://flutter.dev/吗? Once that works, we'll know where the problem is.
一旦成功,我们就会知道问题出在哪里。
[1] https://github.com/flutter/flutter/issues/75227#issuecomment-771917971 [1] https://github.com/flutter/flutter/issues/75227#issuecomment-771917971
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.