share_files_socially 1.0.0 copy "share_files_socially: ^1.0.0" to clipboard
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');
                },
              )
            ],
          ),
        ),
      ),
    );
  }

DEMO #

https://youtu.be/UiEsHvlJDqI

1
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Flutter plugin let you share easily files socially ONLY for Android.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter, path_provider

More

Packages that depend on share_files_socially