share_files_socially 1.0.0 share_files_socially: ^1.0.0 copied to clipboard
Flutter plugin let you share easily files socially ONLY for Android.
Share Files Socially (image, pdf, video...) #
Another Flutter plugin let you share easily files socially ONLY for Android.
Installation #
In the dependencies: section of your pubspec.yaml, add the following line:
share_files_socially: ^1.0.0
```dart
```dart
import 'package:share_files_socially/share_files_socially.dart';
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: Center(
child: Column(
children: <Widget>[
Text('Running on: $_platformVersion\n'),
RaisedButton(
child: Text('Share image'),
onPressed: (){
ShareFilesSocially.shareFile('assets/imgs', 'flutter_logo.png');
},
),
RaisedButton(
child: Text('Share video'),
onPressed: (){
ShareFilesSocially.shareFile('assets/files', 'video.mp4');
},
),
RaisedButton(
child: Text('Share pdf'),
onPressed: (){
ShareFilesSocially.shareFile('assets/files', 'test.pdf');
},
)
],
),
),
),
);
}