Add the following to your pubspec.yaml
file:
dependencies:
share_client: ^0.0.1
git:
url: https://github.com/arcas0803/share_client.git
ref: main
import 'package:share_client/share_client.dart';
final client = ShareClient();
await client.shareText(text: 'https://www.google.com');
final client = ShareClient();
await client.shareFile(
path: '/storage/emulated/0/Download/1.jpg',
);
final client = ShareClient();
await client.shareFiles(
paths: [
'/storage/emulated/0/Download/1.jpg',
'/storage/emulated/0/Download/2.jpg',
],
);