Commit 858342a4 authored by zhouteng's avatar zhouteng

update version and readme

parent 5b4c9914
## 1.1.2
* rebuild the provider code on android platform
* update sample code
## 1.1.1
* add option param "share panel title" on android
* add option param "subject" on both android and ios
......
......@@ -12,7 +12,7 @@ First, add `share_extend` as a dependency in your pubspec.yaml file.
```
dependencies:
share_extend: "^1.1.1"
share_extend: "^1.1.2"
```
### iOS
......@@ -79,7 +79,9 @@ _shareMultipleImages() async {
}
Future<String> _writeByteToImageFile(ByteData byteData) async {
Directory dir = await getApplicationDocumentsDirectory();
Directory dir = Platform.isAndroid
? await getExternalStorageDirectory()
: await getApplicationDocumentsDirectory();
File imageFile = new File(
"${dir.path}/flutter/${DateTime.now().millisecondsSinceEpoch}.png");
imageFile.createSync(recursive: true);
......
......@@ -10,7 +10,7 @@ Language: [English](https://github.com/zhouteng0217/ShareExtend/blob/master/READ
```
dependencies:
share_extend: "^1.1.1"
share_extend: "^1.1.2"
```
### iOS
......@@ -76,7 +76,9 @@ _shareMultipleImages() async {
}
Future<String> _writeByteToImageFile(ByteData byteData) async {
Directory dir = await getApplicationDocumentsDirectory();
Directory dir = Platform.isAndroid
? await getExternalStorageDirectory()
: await getApplicationDocumentsDirectory();
File imageFile = new File(
"${dir.path}/flutter/${DateTime.now().millisecondsSinceEpoch}.png");
imageFile.createSync(recursive: true);
......
name: share_extend
description: A Flutter plugin for Android and iOS for sharing text, image, video and file with system ui.
version: 1.1.1
version: 1.1.2
author: zhouteng <qfszyq@gmail.com>
homepage: https://github.com/zhouteng0217/ShareExtend
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment