同样地，我建议去下载下百川电商SDK Demo并阅读相关文档，并参考官网文档，尽管官网的文档很坑。因为很多内容我不会在这里做赘述。 也欢迎各位朋友PR。
import 'package:nautilus/nautilus.dart' as nautilus; Future<InitAsyncResult> result = await nautilus.initTradeAsync();
Future<InitAsyncResult> result = await nautilus.login();
import 'package:nautilus/nautilus.dart' as nautilus; Future<User> user = await nautilus.getUser();
import 'package:nautilus/nautilus.dart' as nautilus; Future<bool> isLogin = await nautilus.isLogin();
import 'package:nautilus/nautilus.dart' as nautilus; nautilus.openItemDetail(itemID: "41576306115");
import 'package:nautilus/nautilus.dart' as nautilus; nautilus.openUrl(pageUrl: "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2165762428&activityId=5698d91c0b474d9caf88279009bda4f3");
<img src="./arts/wx.jpeg" height="300"> <img src="./arts/ali.jpeg" height="300">
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.
Demonstrates how to use the nautilus plugin.
For help getting started with Flutter, view our online documentation.
Add this to your package's pubspec.yaml file:
dependencies: nautilus: ^0.0.3
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.0.3||Dec 10, 2018|
|0.0.2||Dec 10, 2018|
|0.0.1||Dec 1, 2018|
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]
We analyzed this package on Dec 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
Document public APIs (-9.44 points)
51 out of 54 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.
The description contains too many non-ASCII characters. (-20 points)
The site uses English as it's primary language. Please use a description that primarily contains characters used when writing English.
Package is pre-v0.1 release. (-10 points)
While there is nothing inherently wrong with versions of
0.0.*, it usually means that the author is still experimenting with the general direction of the API.