【问题标题】:How to pass string from app to another in flutter?如何将字符串从应用程序传递到另一个应用程序?
【发布时间】:2021-01-29 19:04:07
【问题描述】:
  • 如何将字符串从一个 Flutter 应用发送到另一个应用?

我发现这个包名为 uni_links,它可能对我有帮助,

  • 但是如何发送数据呢?

我正在使用 deviceapps 包来打开我的第二个应用。

  • 有没有办法为我打开的应用设置参数?

谢谢。

【问题讨论】:

    标签: android ios flutter parameter-passing


    【解决方案1】:

    使用此库share_intent,您可以与其他应用共享文本。 为了接收共享意图,必须使用receive_share_intent 构建其他应用程序。

    例如: 您可以使用Share.share('check out my website https://example.com'); 与 WhatsApp 等文字分享应用分享文字。

    【讨论】:

      猜你喜欢
      • 2012-06-15
      • 2016-10-26
      • 1970-01-01
      • 2014-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多