简体   繁体   English

如何通过单击 url 打开我的 flutter 应用程序

[英]How to open my flutter app by clicking a url

I'm working on a flutter app, and now I need to be able to open my app whenever a URL with a certain pattern is clicked.我正在开发一个 flutter 应用程序,现在我需要能够在单击具有特定模式的 URL 时打开我的应用程序。

In other words, I'd like to have that option from a clicked URL saying "Which app do you want to use to open this link"换句话说,我想从点击的 URL 中获得该选项,说“您想使用哪个应用程序打开此链接”

and from the shown apps to open this link I want mine to be in there从显示的应用程序打开这个链接,我希望我的应用程序在那里

Is it possible?是否可以? How can I do this?我怎样才能做到这一点?

Also, I need to say I have done this from Android Studio - Java, but never in flutter/dart, I am a newbie around flutter另外,我需要说我已经从 Android Studio - Java 完成了这个,但从来没有在 flutter/dart 中,我是 flutter 附近的新手

I have found the solution, this link is going to give you everything you need for deep linking in flutter:我找到了解决方案,此链接将为您提供在 flutter 中进行深度链接所需的一切:

https://pub.dev/packages/uni_links https://pub.dev/packages/uni_links

Documentation/Installation文档/安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM