添加文本分享

This commit is contained in:
v7lin
2019-12-26 22:04:04 +08:00
parent ef692827e8
commit 3a1a31a001
6 changed files with 96 additions and 41 deletions

View File

@ -127,7 +127,7 @@ class _HomeState extends State<Home> {
},
),
ListTile(
title: const Text('分享文字'),
title: const Text('分享说说'),
onTap: () {
_tencent.shareMood(
scene: TencentScene.SCENE_QZONE,
@ -135,6 +135,15 @@ class _HomeState extends State<Home> {
);
},
),
ListTile(
title: const Text('文本分享'),
onTap: () {
_tencent.shareText(
scene: TencentScene.SCENE_QZONE,
summary: '分享测试',
);
},
),
ListTile(
title: const Text('图片分享'),
onTap: () async {
@ -166,7 +175,7 @@ class _HomeState extends State<Home> {
},
),
ListTile(
title: const Text('分享链接'),
title: const Text('网页分享'),
onTap: () {
_tencent.shareWebpage(
scene: TencentScene.SCENE_QQ,