简体   繁体   English

在 iOS 环境(野生动物园)的颤振 Web 中未打开新选项卡

[英]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:以下是代码片段:

onPressed Function onPressed 函数按下函数

Heres the validation method这是验证方法验证

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.

相关问题 iOS (Safari) 中的 Flutter web 状态栏 - Flutter web status bar in iOS (Safari) 如何在 flutter web 的新选项卡中打开页面? - How to open a page in new tab in flutter web? 无论如何要在 flutter web 的新选项卡中打开页面? - Is there anyway to open a page in new tab in flutter web? 从 Flutter Web Safari 获取 Smart Banner iOS 传递的参数 - Get arguments passed by Smart Banner iOS from flutter web safari 如何在新标签页或同一标签页中打开外部 url in flutter web - How do I open an external url in flutter web in new tab or in same tab 从移动浏览器(iOS 上的 Safari、Chrome)中的 Flutter Web 应用程序重定向到移动应用程序 - Redirect from Flutter Web App in Mobile Browser(Safari, Chrome on iOS) to Mobile App flutter web forms 在 mac 浏览器(firefox、chrome)中工作,但在 windows 或 ios 浏览器(firefox、chrome、safari)中不起作用 - flutter web forms work in mac browsers (firefox, chrome) but not in windows or ios browsers (firefox, chrome, safari) Flutter web 垂直标签导航 - Flutter web vertical tab navigation Flutter Web:右键单击 -> 浏览器上下文菜单 -> 在新选项卡中打开链接 - Flutter Web: Right click -> Browser Context Menu -> Open Link in New Tab 如何调试在 iOS > 14 上打开的 Flutter 通知 - How to debug Flutter notifications opening on iOS > 14
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM