Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouteng0217 committed Oct 9, 2018
1 parent 90996e2 commit 1cd2adf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* linguist-language=Dart
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# ShareExtend
调用系统分享的Flutter组件,支持分享文本,图片和文件

![screenshot](./screenshot.png)


## 安装

```
dependencies:
share_extend: "^0.0.1"
```
```
## 导入
```
import 'package:share_extend/share_extend.dart';
Expand Down Expand Up @@ -37,7 +39,7 @@ import 'package:share_extend/share_extend.dart';
</provider>
```
```{your_authorities}``` 你定义的authorities

```{your_provider_file}``` 你的provider配置文件名

工程的res文件夹下,新建一个xml文件夹,添加一个{your_provider_file}的xml文件,配置类似如下:
Expand All @@ -53,7 +55,7 @@ import 'package:share_extend/share_extend.dart';
</resources>
```
### Dart中调用

```
// authorities 上面定义authorities

Expand Down
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cd2adf

Please sign in to comment.