1

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'
        },
      );
Andrew Piterov
  • 340
  • 3
  • 12

1 Answers1

0

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

snapkit.share(SnapchatMediaType.PHOTO,
  image: ImageProvider,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
Ahmed
  • 101
  • 9
  • Thanks, @Ahmed! I've implemented it with this package after a bunch of settings in the Snapchat Developer Portal and the plugin's settings which you can find here https://github.com/TimmyRB/snapkit/wiki/iOS-Installation – Andrew Piterov Dec 17 '22 at 05:23