native_screenshot_widget 0.0.8 copy "native_screenshot_widget: ^0.0.8" to clipboard
native_screenshot_widget: ^0.0.8 copied to clipboard

A Flutter plugin to take screenshot(support Platform Views) for Android and iOS with native code.

native_screenshot_widget #

pub package

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();
//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();

4
likes
160
points
158
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to take screenshot(support Platform Views) for Android and iOS with native code.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on native_screenshot_widget