widget_capture_share 0.0.1
widget_capture_share: ^0.0.1 copied to clipboard
A new Flutter package.
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 run
dart pub get):
dependencies:
widget_capture_share: ^0.0.1
- Import the package and use it in your Flutter App.
import 'package:widget_capture_share/process.dart';
Example #
//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");