easy_screenshot 1.0.1 copy "easy_screenshot: ^1.0.1" to clipboard
easy_screenshot: ^1.0.1 copied to clipboard

Capture any widget as image.

Easy Screenshot #

Easy Screenshot for Flutter

A flutter package to convert any widget as image

code

Installation #

Add below line to your pubspec.yaml and run flutter packages get

easy_screenshot: ^latest version  

Flutter Usage #

Import the package

import 'package:easy_screenshot/easy_screenshot.dart';  

Add a EasyScreenshotController to control the trigger

EasyScreenshotController _controller = EasyScreenshotController();  

Create a EasyScreenshot widget in a widget tree

EasyScreenshot(  
controller: _controller,  
child: const Text(  
'Easy Screenshot',  
style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold),  
),  
)

Capture a screenshot

File file = await _controller.capture();