简体   繁体   English

如何在颤振中将字符串从应用程序传递到另一个应用程序?

[英]How to pass string from app to another in flutter?

  • How can I send a String from one Flutter app to another?如何将一个字符串从一个Flutter应用程序发送到另一个应用程序?

I find this package called uni_links , it may help me,我发现这个包叫做uni_links ,它可能对我有帮助,

  • But how to send data?但是如何发送数据呢?

I'm using deviceapps package to open my second app.我正在使用deviceapps包打开我的第二个应用程序。

  • Is there a way to set parameters to the app I'm opening?有没有办法为我打开的应用程序设置参数?

Thank you.谢谢你。

Using this library, share_intent you can share the text with other apps.使用这个库, share_intent你可以与其他应用程序共享文本。 In order to receiver share intents, the other app must be built with receive_share_intent .为了接收者共享意图,另一个应用程序必须使用receive_share_intent构建。

For example: You can use Share.share('check out my website https://example.com');例如:您可以使用Share.share('check out my website https://example.com'); to share text with text sharing apps like WhatsApp.与 WhatsApp 等文本共享应用程序共享文本。

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

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