easytbk 0.2.4

  • Readme
  • Changelog
  • Example
  • Installing
  • 67

简单淘客 #

阿里百川电商SDK在Flutter上的实现,通过它可以实现淘宝登录,打开淘宝商品详情等功能。

使用需知 #

在使用前请详细阅读阿里百川官方文档,安全图片请使用V4的,官方文档比较坑,遇到问题提交工单解决。

初始化 #

 import 'package:easytbk/easytbk.dart' as easytbk;
 var  result = await easytbk.initTradeAsync();

淘宝授权登录: #

var result = await easytbk.login();

获取当用户信息: #

 import 'package:easytbk/easytbk.dart' as easytbk;
 easytbk.User user = await easytbk.getUser();

查询是否登录: #

 import 'package:easytbk/easytbk.dart' as easytbk;
 bool isLogin = await easytbk.isLogin();

打开淘宝详情: #

 import 'package:easytbk/easytbk.dart' as easytbk;
 easytbk.openItemDetail(itemID: "1234567");

打开淘宝URL #

 import 'package:easytbk/easytbk.dart' as easytbk;
 easytbk.openUrl(pageUrl: "https://www.taobao.com");

TODO #

  1. 阿里百川自定义webview
  2. 京东联盟SDK
  3. 多多进宝SDK

联系方式 #

QQ群:88852333 微信:bugfixed

LICENSE #

Copyright 2018 OpenFlutter Project

Licensed to the Apache Software Foundation (ASF) under one or more contributor
license agreements.  See the NOTICE file distributed with this work for
additional information regarding copyright ownership.  The ASF licenses this
file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License.  You may obtain a copy of
the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
License for the specific language governing permissions and limitations under
the License.

0.2.4 #

  • IOS不用重写AppDelegate

0.2.3 #

  • IOS不用重写AppDelegate

0.2.2 #

  • 更新阿里百川sdk

0.2.1 #

  • 优化代码,增加评分

0.0.2 #

  • 集成阿里百川sdk.

0.0.1 #

  • 项目框架初始化,该版本不要下载.

example/README.md

easytbk_example #

Demonstrates how to use the easytbk 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:


dependencies:
  easytbk: ^0.2.4

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:easytbk/easytbk.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
67
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://github.com/niugengyun/easytbk-flutter.git was unreachable.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

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.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test