Search packages, repositories and app categories

Package detailsv2.0.0

snapkit

A Flutter Plugin for integrating with Snapchat's SnapKit on iOS & Android

AndroidiOS
30-day downloads
33
Likes
32
Pub points
130

Install package

flutter pub add snapkit

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

SnapKit is a Flutter plugin that enables integration with Snapchat's SnapKit SDK on both iOS and Android platforms. It allows developers to incorporate Snapchat-specific features such as sharing content, accessing user data, and leveraging Snapchat's AR capabilities within their Flutter applications. The plugin provides a bridge between Flutter and the native Snapchat SDKs, ensuring seamless functionality across mobile platforms. With support for both Android and iOS, SnapKit simplifies the process of adding Snapchat interactions to apps without requiring deep native development knowledge.

Use cases

  • Sharing content to Snapchat
  • Integrating Snapchat AR lenses
  • Accessing Snapchat user data
  • Building social media integrations
  • Enabling in-app Snaps
  • Creating Snapchat-powered features

Key features

  • Native Snapchat SDK integration
  • Cross-platform support (iOS & Android)
  • Simple Flutter API
  • Support for SnapKit's core features
  • Easy setup via pub.dev
  • Regular updates from community maintainers

Suitable for

  • Social media apps
  • AR-enabled applications
  • Content-sharing platforms
  • Apps targeting Snapchat users
  • Developers using Flutter for mobile

Considerations

  • Requires Snapchat developer account
  • Limited to Snapchat-specific features
  • Depends on native SDK versions
  • May require additional permissions
  • Not suitable for non-Snapchat use cases

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Snapkit

Pub Package Code Analysis Android Builds iOS Builds

A plugin that allows developers like you to integrate with Snapchat (using SnapKit) into your Flutter applications!

Getting Started

Follow the Wiki for steps on how to get setup in an existing project or just copy the example project into a directory of your choosing and rename it.

Usage

Create new Instance
Snapkit snapkit = new Snapkit();
AuthState Stream
snapkit.onAuthStateChanged.listen((SnapchatUser? user) {
    // Do something with the returned SnapchatUser or null here
});
AuthState Class
class MyAppState extends State<MyApp> implements SnapchatAuthStateListener {

  snapkit.addAuthStateListener(this);

  @override
  void onLogin(SnapchatUser user) {
    // Do something with the returned SnapchatUser here
  }

  @override
  void onLogout() {
    // Do something on logout
  }

}
Login
await snapkit.login();

// or

snapkit.login().then(user => {});
Logout
await snapkit.logout();

// or

snapkit.logout().then(() => {});
Verify a Phone Number

Returns a bool if Snapchat has verified the phone number, throws an error if there was a problem. Always returns false on Android

snapkit.verifyPhoneNumber('US', '1231234567')
  .then(isVerified {})
  .catchError((error, StackTrace stacktrace) {})

Share to Snapchat

Share to LIVE
snapkit.share(SnapchatMediaType.NONE,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
Share with Background Photo
snapkit.share(SnapchatMediaType.PHOTO,
  image: ImageProvider,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
Share with Background Video

Currently unavailable on Android

snapkit.share(SnapchatMediaType.VIDEO,
  videoUrl: String,
  sticker: SnapchatSticker?,
  caption: String?,
  attachmentUrl: String?
);
SnapchatSticker
new SnapchatSticker(
  image: ImageProvider
);

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.