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
5891d9d2
Commit
5891d9d2
authored
5 years ago
by
zhouteng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add option subject for muti share
parent
8f546a6c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
example/lib/main.dart
example/lib/main.dart
+1
-1
lib/share_extend.dart
lib/share_extend.dart
+8
-2
No files found.
example/lib/main.dart
View file @
5891d9d2
...
...
@@ -92,7 +92,7 @@ class _MyAppState extends State<MyApp> {
await
_writeByteToImageFile
(
await
asset
.
getByteData
(
quality:
30
));
imageList
.
add
(
path
);
}
ShareExtend
.
shareMultiple
(
imageList
,
"image"
);
ShareExtend
.
shareMultiple
(
imageList
,
"image"
,
subject:
"share muti image"
);
}
Future
<
String
>
_writeByteToImageFile
(
ByteData
byteData
)
async
{
...
...
This diff is collapsed.
Click to expand it.
lib/share_extend.dart
View file @
5891d9d2
...
...
@@ -14,10 +14,16 @@ class ShareExtend {
static
const
MethodChannel
_channel
=
const
MethodChannel
(
'com.zt.shareextend/share_extend'
);
///
/// [sharePositionOrigin] only supports ios
///
static
Future
<
void
>
shareMultiple
(
List
<
String
>
list
,
String
type
,
{
Rect
sharePositionOrigin
})
{
{
Rect
sharePositionOrigin
,
String
sharePanelTitle
,
String
subject
})
{
assert
(
list
!=
null
&&
list
.
isNotEmpty
);
return
_shareInner
(
list
,
type
,
sharePositionOrigin:
sharePositionOrigin
);
return
_shareInner
(
list
,
type
,
sharePositionOrigin:
sharePositionOrigin
,
subject:
subject
,
sharePanelTitle:
sharePanelTitle
);
}
static
Future
<
void
>
share
(
String
text
,
String
type
,
...
...
This diff is collapsed.
Click to expand it.
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