Add a util function to share text
This commit is contained in:
parent
792c606c7e
commit
ad8bca7fe7
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue