0 purchases
easy screenshot
Easy Screenshot #
Easy Screenshot for Flutter
A flutter package to convert any widget as image
Installation #
Add below line to your pubspec.yaml and run flutter packages get
easy_screenshot: ^latest version
copied to clipboard
Flutter Usage #
Import the package
import 'package:easy_screenshot/easy_screenshot.dart';
copied to clipboard
Add a EasyScreenshotController to control the trigger
EasyScreenshotController _controller = EasyScreenshotController();
copied to clipboard
Create a EasyScreenshot widget in a widget tree
EasyScreenshot(
controller: _controller,
child: const Text(
'Easy Screenshot',
style: TextStyle(fontSize: 40, fontWeight: FontWeight.bold),
),
)
copied to clipboard
Capture a screenshot
File file = await _controller.capture();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.