flutter_kin_ecosystem_sdk 0.1.1

  • README.md
  • Example
  • Installing
  • Versions
  • 66

flutter_kin_ecosystem_sdk #

A flutter Kin Ecosystem SDK plugin to use offers features and launch Kin Marketplace.

Unofficial Kin Ecosystem SDK plugin written in Dart for Flutter.

Usage #

To use this plugin, add flutter_kin_ecosystem_sdk as a dependency in your pubspec.yaml file.

  flutter_kin_ecosystem_sdk: '^0.1.1'

Initializing #

import 'package:flutter_kin_ecosystem_sdk/flutter_kin_ecosystem_sdk.dart';

// Generate jwt_token and all jwt by yourself and setting in the plugin to have a response
//userID - your application unique identifier for the user
//appID - your application unique identifier as provided by Kin.
// true - initializing balance observer
// true - production mode (false - playground)
await FlutterKinEcosystemSdk.kinStart(jwt_token, userId, appId, true, true);

Receivers #

To receive some changes in plugin you can use such ones:

// Receive balance scream and get all balance changes
FlutterKinEcosystemSdk.balanceStream.receiveBroadcastStream().listen((balance) {

// Receive all info and error messages from plugin
FlutterKinEcosystemSdk.infoStream.receiveBroadcastStream().listen((jsonStr) {

Some methods #

// A custom Earn offer allows your users to earn Kin
// as a reward for performing tasks you want to incentives,
// such as setting a profile picture or rating your app

// A custom Spend offer allows your users to unlock unique spend opportunities
// that you define within your app

// A custom pay to user offer allows your users to unlock
// unique spend opportunities that you define
// within your app offered by other users

Installation #

Android and iOS #

No configuration required - the plugin should work out of the box.

0.1.0 #

  • All functional for Android and IOS
  • Opportunity to choose between playground and production mode
  • Returning amount of earn in Info json
  • iOS migration methods

0.1.1 #

  • updating Android Kin Devplatform Library to


flutter_kin_ecosystem_sdk_example #

Demonstrates how to use the flutter_kin_ecosystem_sdk plugin.

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:

  flutter_kin_ecosystem_sdk: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_kin_ecosystem_sdk/flutter_kin_ecosystem_sdk.dart';
Version Uploaded Documentation Archive
0.1.1 Feb 28, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.1.1 Download flutter_kin_ecosystem_sdk 0.1.1 archive
0.1.0 Feb 19, 2019 Go to the documentation of flutter_kin_ecosystem_sdk 0.1.0 Download flutter_kin_ecosystem_sdk 0.1.0 archive
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 Mar 6, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

12 out of 12 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Format lib/flutter_kin_ecosystem_sdk.dart.

Run flutter format to format lib/flutter_kin_ecosystem_sdk.dart.


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