Commit 5891d9d2 authored by zhouteng's avatar zhouteng

add option subject for muti share

parent 8f546a6c
......@@ -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 {
......
......@@ -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,
......
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