Skip to content
This repository was archived by the owner on Jul 21, 2022. It is now read-only.

Commit f5eaf54

Browse files
committed
Update README.md
1 parent dcf877e commit f5eaf54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ Share files:
2828
```dart
2929
final ByteData bytes1 = await rootBundle.load('assets/image1.png');
3030
final ByteData bytes2 = await rootBundle.load('assets/image2.png');
31+
final ByteData bytes3 = await rootBundle.load('assets/addresses.csv');
3132
3233
await Share.files(
3334
'esys images',
3435
{
3536
'esys.png': bytes1.buffer.asUint8List(),
3637
'bluedan.png': bytes2.buffer.asUint8List(),
38+
'addresses.csv': bytes3.buffer.asUint8List(),
3739
},
38-
'image/png');
40+
'*/*');
3941
```
4042

4143
Share file from url:

0 commit comments

Comments
 (0)