Home > OS >  How to share image to Snapchat from my Flutter app?
How to share image to Snapchat from my Flutter app?

Time:12-17

How to share an image (local from Gallery or any from the internet with url) to Snapchat from my Flutter app?

Is there any Snapchat urlScheme to do that, as was asking here?

Or can I achieve it with this app_utils plugin as

await AppUtils.launchApp(
        iosUrlScheme: 'snapchat://',
        androidPackage: 'com.snapchat.android',
        params: {
          'imageUrl': 'path to my image'
        },
      );

CodePudding user response:

You can use snapkit package to share images using snapkit.share() function

snapkit.share(SnapchatMediaType.PHOTO,
  image: ImageProvider,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
  • Related