native_screenshot_widget 0.0.4 copy "native_screenshot_widget: ^0.0.4" to clipboard
native_screenshot_widget: ^0.0.4 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
0
points
164
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

License

unknown (license)

Dependencies

ff_native_screenshot, flutter

More

Packages that depend on native_screenshot_widget