snapchat_flutter_plugin 0.0.3+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 63

snapchat_flutter_plugin #

A plugin for snapchat Login. Please make some changes to work this plugin

Step 1

    please go to and make your app register
    there and get the redirect url and your snap chat client for android and

Step 2

For Android

    Make some changes in android manifest and other like

In android manifest

        android:value=“your client id” />
        android:value=“your redirect url“ />
        android:resource="@array/snap_connect_scopes" /> <!-- This should be a string array of scopes !-->

    <activity android:name="com.snapchat.kit.sdk.SnapKitActivity"


    <actionandroid:name="android.intent.action.VIEW" />

    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />

        android:host=“your host from redirect url” //sanp-chat
        android:path=“your path“ // /oauth2
        android:scheme=“your scheme” /> //snapChat


App gradle inside dependencies


Build gradle inside all projects

    maven {
          url ""

Values folder make an array.xml and paste below

<?xml version="1.0" encoding="utf-8"?>
    <string-array name="snap_connect_scopes">

Step 3

For iOS

    •	Client ID from the developer portal
    •	iOS version 10.1+

Make changes in your info plist

In AppDelegate please add

override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
    return SCSDKLoginClient.application(app, open: url, options: options)

please add in pod file

 pod 'SnapSDK'


<string>your redirect url</string>

<string>your client id</string>
    suppose your redirect url is myapp://snap-kit/oauth2




Step 4

To use it

For Login just call

SnapchatFlutterPlugin.snapchatLogin.then((onValue) {
    // cast onvalue to the map of string , dynamic 

In return you get the map for the data of name, id an pic cast it as a dynamic if you get success then return map else it will return String if any issue found.

For Logout

await SnapchatFlutterPlugin.snapchatLogout;

return type is dynamic

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1.0 #

  • Minor Changes

0.0.3+1 #

  • Stable version

0.0.3 #

  • iOS login issue fix.

0.0.2+3 #

  • Minor bux fixes on android and iOS.

0.0.2+2 #

  • Fix issue for callback from android and iOS.


snapchat_flutter_plugin_example #

Demonstrates how to use the snapchat_flutter_plugin plugin.

To login

try {
  SnapchatFlutterPlugin.snapchatLogin.then((onValue) {
    Map<String, dynamic> data = onValue;
} catch (e) {

To logout

    await SnapchatFlutterPlugin.snapchatLogout()
    the return type is String.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  snapchat_flutter_plugin: ^0.0.3+1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:snapchat_flutter_plugin/snapchat_flutter_plugin.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Feb 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/generated/i18n.dart.

Run flutter format to format lib/generated/i18n.dart.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies