flutter_kin_sdk 0.1.3

  • README.md
  • Example
  • Installing
  • Versions
  • 73

flutter_kin_sdk #

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

Unofficial Kin SDK plugin written in Dart for Flutter.

Usage #

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

  flutter_kin_sdk: '^0.1.3'

Initializing #

import 'package:flutter_kin_sdk/flutter_kin_sdk.dart';

// Generate jwt_token and all jwt by yourself and setting in the plugin to have a response
// true - initializing balance observer
// true - production mode (false - playground)
await FlutterKinSdk.kinStart(jwt_token, true, true);

Receivers #

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

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

// Receive all info and error messages from plugin
FlutterKinSdk.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.0.1 #

  • Init with all functional for Android and IOS

0.1.1 #

  • Opportunity to choose between playground and production mode

0.1.2 #

  • Returning amount of earn in Info json

0.1.3 #

  • iOS migration methods


flutter_kin_sdk_example #

Demonstrates how to use the flutter_kin_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_sdk: ^0.1.3

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_sdk/flutter_kin_sdk.dart';
Version Uploaded Documentation Archive
0.1.3 Feb 15, 2019 Go to the documentation of flutter_kin_sdk 0.1.3 Download flutter_kin_sdk 0.1.3 archive
0.1.2 Feb 13, 2019 Go to the documentation of flutter_kin_sdk 0.1.2 Download flutter_kin_sdk 0.1.2 archive
0.1.1 Jan 29, 2019 Go to the documentation of flutter_kin_sdk 0.1.1 Download flutter_kin_sdk 0.1.1 archive
0.1.0 Jan 29, 2019 Go to the documentation of flutter_kin_sdk 0.1.0 Download flutter_kin_sdk 0.1.0 archive
0.0.1 Jan 25, 2019 Go to the documentation of flutter_kin_sdk 0.0.1 Download flutter_kin_sdk 0.0.1 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 Apr 16, 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.4.7


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_sdk.dart.

Run flutter format to format lib/flutter_kin_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