简体   繁体   中英

How can I use platform specific code to share images with a Flutter app?

I searched everywhere but came to the conclusion that there is neither any built-in way nor any plugins that can share an image from a Flutter app. So, I thought that the best way to share an image from a Flutter app is to share it with platform specific codes separately for Android and iOS.

The question is; how can I implement platform specific codes to my Flutter app to share images?

I have very little knowledge of native languages so any help is much appreciated. All I need is to share images through the platforms' own share dialogs.

Yes, you can write platform specific code in flutter (native code) and execute them from flutter by using platform channels , using this you can implement any type of native code whether in iOS or Android for eg implementing payment gateways and other SDKs that are not available in Dart language. I guess this is exactly what you are looking for.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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