Commit 409afdac authored by zhouteng's avatar zhouteng

更新下注释和版本号

parent a0987864
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
``` ```
dependencies: dependencies:
share_extend: "^1.0.1" share_extend: "^1.0.2"
``` ```
## 导入 ## 导入
``` ```
......
/// A flutter plugin to share text, image, file with system ui.
/// It is compatible with both andorid and ios.
///
///
/// A open source authorized by zhouteng [https://github.com/zhouteng0217/ShareExtend](https://github.com/zhouteng0217/ShareExtend).
import 'dart:async'; import 'dart:async';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'dart:ui'; import 'dart:ui';
/// Plugin for summoning a platform share sheet.
class ShareExtend { class ShareExtend {
/// [MethodChannel] used to communicate with the platform side.
static const MethodChannel _channel = const MethodChannel('share_extend'); static const MethodChannel _channel = const MethodChannel('share_extend');
/// method to share with system ui
/// It uses the ACTION_SEND Intent on Android and UIActivityViewController
/// on iOS.
/// type "text", "image" ,"file"
///
static Future<void> share(String text, String type, String authorities, static Future<void> share(String text, String type, String authorities,
{Rect sharePositionOrigin}) { {Rect sharePositionOrigin}) {
assert(text != null); assert(text != null);
......
name: share_extend name: share_extend
description: A flutter plugin to share text, image, file with systemui. 一个调用系统分享的flutter插件,支持分享文本,图片和文件。 description: A flutter plugin to share text, image, file with system ui. It is compatible with both andorid and ios.
version: 1.0.1 version: 1.0.2
author: zhouteng <qfszyq@gmail.com> author: zhouteng <qfszyq@gmail.com>
homepage: https://github.com/zhouteng0217/ShareExtend 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