提交 60416886 authored 作者: JarvanMo's avatar JarvanMo

update doc

上级 f6e1bc7a
......@@ -23,6 +23,21 @@ QQ Group:892398530。
* Launch Mini-Program.
* Subscribe Message.
## Dependencies
Add the following dependencies in your `pubspec.yaml` file:
```
dependencies:
fluwx: ^${latestVersion}
```
> current version is ![pub package](https://img.shields.io/pub/v/fluwx.svg)
For using the snapshot:
```
dependencies:
fluwx:
git:
url: https://github.com/OpenFlutter/fluwx
```
## Register WeChatSDK via Fluwx
Before using`Fluwx`,you should init `FLuwx`
......
......@@ -22,7 +22,22 @@ QQ群:892398530。
* 打开小程序。
* 一次性订阅消息。
## 引入
在你的 `pubspec.yaml` 文件中添加如下依赖:
```
dependencies:
fluwx: ^${latestVersion}
```
> 当前版本为 ![pub package](https://img.shields.io/pub/v/fluwx.svg)
如果想用github上最新版本:
```
dependencies:
fluwx:
git:
url: https://github.com/OpenFlutter/fluwx
```
## 初始化
使用`Fluwx`前,需要进行初始化操作:
......
......@@ -26,30 +26,35 @@ import 'utils/utils.dart';
StreamController<WeChatShareResponse> _responseShareController =
new StreamController.broadcast();
/// Response from share
Stream<WeChatShareResponse> get responseFromShare =>
_responseShareController.stream;
StreamController<WeChatAuthResponse> _responseAuthController =
new StreamController.broadcast();
/// Response from auth
Stream<WeChatAuthResponse> get responseFromAuth =>
_responseAuthController.stream;
StreamController<WeChatPaymentResponse> _responsePaymentController =
new StreamController.broadcast();
///Response from payment
Stream<WeChatPaymentResponse> get responseFromPayment =>
_responsePaymentController.stream;
Stream<WeChatLaunchMiniProgramResponse> get responseFromLaunchMiniProgram =>
_responseLaunchMiniProgramController.stream;
///Response from launching mini-program
StreamController<WeChatLaunchMiniProgramResponse>
_responseLaunchMiniProgramController = new StreamController.broadcast();
StreamController<WeChatSubscribeMsgResp> _responseFromSubscribeMsg =
new StreamController.broadcast();
///Response from subscribing micro-message
Stream<WeChatSubscribeMsgResp> get responseFromSubscribeMsg =>
_responseFromSubscribeMsg.stream;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论