How to share a file using flutter

前端 未结 7 1379
悲哀的现实
悲哀的现实 2021-02-07 09:43

I am wondering how to share a file in a flutter app?

I saw some old references to using Intents with mojo, but that no longer seems to be present. This seems like a sta

7条回答
  •  面向向阳花
    2021-02-07 10:21

    Currently there is no built-in way to do this. As Seth Ladd mentioned above, https://github.com/flutter/flutter/issues/7111 is tracking making this easier.

    For now, you would have to write the necessary share code in Objective-C or Java and call it from your Dart using the platform-services model documented at https://flutter.io/platform-services and shown in https://github.com/flutter/flutter/tree/master/examples/hello_services.

提交回复
热议问题