wc_flutter_share 0.0.1 copy "wc_flutter_share: ^0.0.1" to clipboard
wc_flutter_share: ^0.0.1 copied to clipboard

discontinuedreplaced by: share_plus
outdated

A Flutter plugin for sharing files & text with other applications.

wc_flutter_share #

A Flutter plugin for sharing files & text with other applications.

Note for iOS #

Your flutter's iOS code needs to be in swift. Otherwise you will get error:

=== BUILD TARGET flutter_inappbrowser OF PROJECT Pods WITH CONFIGURATION Debug === The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. Supported values are: 3.0, 4.0, 4.2. This setting can be set in the build settings editor.

Instead, if you have already a non-swift project, you can check this issue to solve the problem: Friction adding swift plugin to objective-c project.

Note for Android #

Your android support libraries needs to be of androidx. If you want to migrate your android project to androidx, can take help from Migrating to AndroidX

Usage #

Import:

import 'package:wc_flutter_share/wc_flutter_share.dart';

Share text:

WcFlutterShare.text('This is share title', 'This is share text', 'text/plain');

Share file only:

      final ByteData bytes = await rootBundle.load('assets/wisecrab.png');
      await WcFlutterShare.file(
          'This is share popupup title',
          null,
          null,
          'share.png',
          'image/png',
          bytes.buffer.asUint8List());

Share file, text and subject:

      final ByteData bytes = await rootBundle.load('assets/wisecrab.png');
      await WcFlutterShare.file(
          'This is share title',
          'This is share text',
          'This is subject text',
          'share.png',
          'image/png',
          bytes.buffer.asUint8List());

Check out the example app in the Repository for further information.

56
likes
0
pub points
90%
popularity

Publisher

verified publisherwisecrab.com

A Flutter plugin for sharing files & text with other applications.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_provider

More

Packages that depend on wc_flutter_share