New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot take screenshot for platform-views by using RepaintBoundary? #25306
Comments
cc @amirh |
Is there any progress on this? I'm also experiencing the same issue. |
@SeanningTatum I suggest you thumb up the issue if it affects you as well so it comes up when prioritizing. |
@amirh I think you should add the platform-ios tag too, I experienced this in iOS. |
@SeanningTatum on iOS it's a different issue (it wasn't implemented yet) the tracking issue for that is #23435 |
same issue for us and very annoying, any progress ? |
May be related to 33568 |
Issue is reproducible on latest flutter doctor -v
code sample
|
Any progress? |
Well, I know this may be a controversial suggestion, but the flutter_inappwebview is an alternative plugin which currently support taking screenshots ( |
Update: webview_flutter 1.0.x with Hybrid-Composition enabled reproduces as well |
in fact, it is " Cannot take screenshot for PlatformView by using RepaintBoundary" |
IOS also has such problem instead of just Android platform; |
have any progress? |
Any progress? |
This comment was marked as abuse.
This comment was marked as abuse.
yes i know it is alternative plugin but using that plugin i can not take screenshot of current state, for example in webview i am drawing something and then i want to take screenshot with drawing ,which is not happening using [flutter_inappwebview]. |
Could you expose this feature from the WkWebview api on iOS. It has takeSnapshot and createPDF options. |
News? is there any way to take screenshots of webview content? |
The only way that I think this might work is to create a javascript channel and insert something like this. https://html2canvas.hertzen.com/ I haven't tested this yet but its the only idea I have to get around this problem until flutter adds it to the webview. |
This is a limitation of platform views at the moment. The current workaround on Android is to use the Espresso framework. I don't have an example I can share at the moment, but internal teams at Google have done this successfully when using hybrid composition. |
|
|
|
The Flutter team will be working on this feature this quarter. You can follow progress on #83856. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter analyze
Analyzing flutter_app...
No issues found! (ran in 1.9s)
flutter doctor -v
The text was updated successfully, but these errors were encountered: