|
|
@@ -73,6 +73,7 @@ public class SystemSharePlugin implements FlutterPlugin, MethodCallHandler {
|
|
|
String filePath = call.argument("filePath");
|
|
|
String packageName = call.argument("packageName");
|
|
|
String shareTitle = call.argument("shareTitle");
|
|
|
+ String shareFileType = call.argument("shareFileType");
|
|
|
if (TextUtils.isEmpty(filePath) || TextUtils.isEmpty(packageName)) {
|
|
|
result.error("-1", "SystemShare: filePath or packageName is empty or null", null);
|
|
|
return;
|
|
|
@@ -86,7 +87,7 @@ public class SystemSharePlugin implements FlutterPlugin, MethodCallHandler {
|
|
|
result.error("-1", "SystemShare: app not installed", null);
|
|
|
return;
|
|
|
}
|
|
|
- SystemShareUtil.shareFile(applicationContext, file, packageName, shareTitle);
|
|
|
+ SystemShareUtil.shareFile(applicationContext, file, packageName, shareTitle,shareFileType);
|
|
|
result.success(null);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|