Skip to content

Commit

Permalink
0.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
李卓原 committed Aug 12, 2021
1 parent cefd63d commit 05d6a6f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 132 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ import 'package:flutter_share_me/flutter_share_me.dart';

#### shareToFacebook({String msg, String url})
#### shareToTwitter({String msg, String url})
#### shareToWhatsApp({String msg,String base64Image})
#### shareToWhatsApp4Biz({String msg,String base64Image})
#### shareToWhatsApp({String msg,String imagePath})
#### shareToWhatsApp4Biz({String msg,String imagePath})
#### shareToSystem({String msg}) use system share ui

These methods will return "success" if they successfully jump to the corresponding app.
Expand All @@ -144,7 +144,7 @@ These methods will return "success" if they successfully jump to the correspondi
| :------------ | :------------ |
| String msg | Text message |
| String url | Url url |
| String base64Image | Image base64 |
| String imagePath |The local path of the image |

## Example
```
Expand Down
125 changes: 0 additions & 125 deletions android/src/main/java/zhuoyuan/li/fluttershareme/util/FileUtil.java

This file was deleted.

2 changes: 0 additions & 2 deletions example/lib/constant.dart

This file was deleted.

3 changes: 1 addition & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_share_me/flutter_share_me.dart';
import 'package:flutter_share_me_example/constant.dart';

enum Share { facebook, twitter, whatsapp, whatsapp_business, share_system }

Expand Down Expand Up @@ -67,7 +66,7 @@ class _MyAppState extends State<MyApp> {
response = await flutterShareMe.shareToTwitter(url: url, msg: msg);
break;
case Share.whatsapp:
response = await flutterShareMe.shareToWhatsApp(msg: msg, imagePath: base64Image);
response = await flutterShareMe.shareToWhatsApp(msg: msg);
break;
case Share.whatsapp_business:
response = await flutterShareMe.shareToWhatsApp(msg: msg);
Expand Down

0 comments on commit 05d6a6f

Please sign in to comment.