widget_capture_share

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

widget capture share

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

Preview image
Save image locally
share image

Installation #

Add the latest version of package to your pubspec.yaml (and rundart pub get):

dependencies:
widget_capture_share: ^0.0.6
copied to clipboard

Import the package and use it in your Flutter App.

import 'package:widget_capture_share/process.dart';
copied to clipboard
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");
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.