Add a util function to share text

This commit is contained in:
Vishnu Mohandas 2020-10-10 05:17:14 +05:30
parent 792c606c7e
commit ad8bca7fe7

View file

@ -38,6 +38,10 @@ Future<void> _shareVideo(ProgressDialog dialog, File file) async {
return ShareExtend.share(path, "image");
}
Future<void> shareText(String text) async {
return ShareExtend.share(text, "text");
}
Future<void> _shareImage(ProgressDialog dialog, File file) async {
await dialog.show();
final bytes = await getBytes(file);