Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ShareExtend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
ShareExtend
Commits
409afdac
Commit
409afdac
authored
Dec 03, 2018
by
zhouteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新下注释和版本号
parent
a0987864
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
README.md
README.md
+1
-1
lib/share_extend.dart
lib/share_extend.dart
+13
-0
pubspec.yaml
pubspec.yaml
+2
-2
No files found.
README.md
View file @
409afdac
...
...
@@ -5,7 +5,7 @@
```
dependencies:
share_extend: "^1.0.
1
"
share_extend: "^1.0.
2
"
```
## 导入
```
...
...
lib/share_extend.dart
View file @
409afdac
/// 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
'package:flutter/services.dart'
;
import
'dart:ui'
;
/// Plugin for summoning a platform share sheet.
class
ShareExtend
{
/// [MethodChannel] used to communicate with the platform side.
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
,
{
Rect
sharePositionOrigin
})
{
assert
(
text
!=
null
);
...
...
pubspec.yaml
View file @
409afdac
name
:
share_extend
description
:
A flutter plugin to share text, image, file with system
ui. 一个调用系统分享的flutter插件,支持分享文本,图片和文件。
version
:
1.0.
1
description
:
A flutter plugin to share text, image, file with system
ui. It is compatible with both andorid and ios.
version
:
1.0.
2
author
:
zhouteng <qfszyq@gmail.com>
homepage
:
https://github.com/zhouteng0217/ShareExtend
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment