Last updated:
0 purchases
native screenshot widget
native_screenshot_widget #
Using #
//PlatformView: e.g: WebView
final screenshotController = NativeScreenshotController();
NativeScreenshot(
controller: screenshotController,
child: WebViewWidget(
controller: WebViewController()
..loadRequest(Uri.parse('https://flutter.dev')),
),
);
//take screenshot:
final imageBytes = await screenshotController.takeScreenshot();
copied to clipboard
//Flutter Widget
final screenshotController = NativeScreenshotController();
NativeScreenshot(
controller: screenshotController,
child: Text(
"Flutter Widget",
style: Theme.of(context).textTheme.titleLarge,
),
),
//take screenshot:
final imageBytes = await screenshotController.takeScreenshot();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.