fl_wx 0.2.1 copy "fl_wx: ^0.2.1" to clipboard
fl_wx: ^0.2.1 copied to clipboard

Simple encapsulation and extension of fluwx,The fluwx plugin will be updated here.

fl_wx 简单封装 fluwx #


void func() {
  /// 启动注册
  FlWX().register(
      appId: '',
      params: FlWXCallbackParams(
          onHttp: (url) async {
            return '';
          },
          onLog: (v) => log(v),
          onToast: (v) => showToast(v)));

  /// 安装判断
  FlWX().isInstalled;

  /// 授权登录
  FlWX().authBy(NormalAuth(scope: ''));

  /// 签名数据
  final pay = {}.toPayment();
  if (pay != null) FlWX().pay(pay);

  /// 打开微信
  FlWX().open(WeChatApp());

  /// 分享
  FlWX().share(WeChatShareTextModel('share'));
}

copied to clipboard
1
likes
150
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

2024.07.08 - 2025.01.20

Simple encapsulation and extension of fluwx,The fluwx plugin will be updated here.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, fluwx

More

Packages that depend on fl_wx