widget_capture_share 0.0.5 copy "widget_capture_share: ^0.0.5" to clipboard
widget_capture_share: ^0.0.5 copied to clipboard

A new Flutter package.

WidgetCaptureShare #

A flutter package that provides you to capture any widget to image. The features is:

  1. Preview image
  2. Save image locally
  3. share image

Installation #

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  widget_capture_share: ^0.0.3
  1. Import the package and use it in your Flutter App.
import 'package:widget_capture_share/process.dart';

Example #

// definig global key of widget
 GlobalKey? key1; 
 
  WidgetCapture(
        builder: (key) {
          key1 = key;
          return const Sample1Screen();
        }),
//function
Future<bool> shareImage(GlobalKey? key,String filename) async{
      await WidgetCaptureShare.capture(key!,saveToDevice: true,albumName: "Test",openFilePreview: false,fileName: filename,isShare: true);
        return true;

  }

//calling function
shareImage(key!, "Invitation card");
1
likes
0
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, gallery_saver, open_file, path_provider, share_plus

More

Packages that depend on widget_capture_share