Open peter100u opened 1 day ago
iOS is working for me. Instead, Android won't work with HTML canvas objects unfortunately.
On Android, you can try to use the controller.evaluateJavascript
method and get the image data of the canvas using https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL javascript API.
Is it possible to use native APIs to take screenshots of your webview instead of finding ways to use JavaScript related APIs
Is there an existing issue for this?
Current Behavior
I am developing an app for processing creative programming, and I want to use webview to take screenshots of content as a way to share my work. However, when I took the screenshots, they were ineffective and left blank
Expected Behavior
Can effectively capture screenshots of webview content
Steps with code example to reproduce
Steps with code example to reproduce
```dart class TestScreenShot extends StatefulWidget { const TestScreenShot({super.key}); @override StateStacktrace/Logs
Flutter version
3.24.3
Operating System, Device-specific and/or Tool
android,ios,xcode
Plugin version
6.1.5
Additional information
No response
Self grab