snapkit 1.1.0 copy "snapkit: ^1.1.0" to clipboard
snapkit: ^1.1.0 copied to clipboard

outdated

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

Snapkit #

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(() => {});

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
);
32
likes
0
pub points
75%
popularity

Publisher

verified publisherjacobbrasil.com

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider

More

Packages that depend on snapkit