share_binary

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

share binary

share_binary #
This library allows you to use the OS's share function while treating binary files such as images and videos as binary data in dart code.
Usage #
import 'package:share_binary/share_binary.dart';

Future<void> share() async {
final image = await rootBundle.load('assets/image.png');
final video = await rootBundle.load('assets/video.mp4');

// Share image
await const ShareBinary().shareBinary(
bytes: image,
filename: 'image.png',
chooserTitle: 'Share image',
);

// Share video
await const ShareBinary().shareBinary(
bytes: video,
filename: 'video.mp4',
chooserTitle: 'Share video',
);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator