flutter_dingtalk 0.0.3
flutter_dingtalk: ^0.0.3 copied to clipboard

A flutter plugin project to support dingtalksharesdk , that can be used with login and share dingtalk.

flutter_dingtalk #

钉钉 Flutter 插件,支持IOS,Android 端授权 支持null-safe 按照钉钉官方文档配置项目

参考钉钉官方文档 #

钉钉官方文档

使用 #

//注册钉钉插件
FlutterDingtalk.registerApp('Your AppId', 'Your IOS BundleId')

//钉钉是否安装
FlutterDingtalk.isDDAppInstalled()

//钉钉授权
FlutterDingtalk.sendDDAppAuth('state');

//分享文本
FlutterDingtalk.sendTextMessage('分享文本');

//分享图片
FlutterDingtalk.sendImageMessage(picUrl:'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png');

//分享链接
FlutterDingtalk.sendWebPageMessage('https://www.baidu.com/',title: '标题',content: '描述2333',
                                  thumbUrl:'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png');

// 回调
FlutterDingtalk.ddResponseEventHandler.listen((resp) async {
  //授权回调信息
  if (resp is DDShareAuthResponse) {
    print('授权回调信息=====> code: ${resp.code}  state:${resp.state}');
  }
});

1
likes
110
pub points
8%
popularity

A flutter plugin project to support dingtalksharesdk , that can be used with login and share dingtalk.

Homepage

Documentation

API reference

Uploader

houjianbin911@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_dingtalk