Flutter share file
I am using share 0.5.3 of flutter to share text and it works well.
I would like to know to share txt/csv file (without convert a file to string) in flutter. According the the example here, it only convert the file into string and share. This is not what I want.
import 'package:share/share.dart';
final RenderBox box = context.findRenderObject();
Share.share(text,
sharePositionOrigin:
box.localToGlobal(Offset.zero) &
box.size);
I would like to know to share txt/csv file (without convert a file to string) in flutter. According the the example here, it only convert the file into string and share. This is not what I want.
import 'package:share/share.dart';
final RenderBox box = context.findRenderObject();
Share.share(text,
sharePositionOrigin:
box.localToGlobal(Offset.zero) &
box.size);
Comments
Post a Comment